Skip to content

Commit 0a9dccf

Browse files
author
Anton Negoda
committed
update results table not only at 'in experiment' state. Timestamp from macro var
1 parent aaaa7f2 commit 0a9dccf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/store/config/mutations.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const mutations: MutationTree<ConfigState> = {
3636
},
3737

3838
addRadiometerResult(state, payload){
39-
if (payload.inExperiment){
39+
// if (payload.inExperiment){
4040

4141
let currTab = payload.currTab
4242
let currIter = payload.currIter
@@ -50,12 +50,13 @@ export const mutations: MutationTree<ConfigState> = {
5050
[`V${currIter}`]: payload.V,
5151
[`A${currIter}`]: payload.A,
5252
[`a${currIter}`]: payload.a,
53-
[`date${currIter}`]: new Date().toLocaleString(),
53+
// [`date${currIter}`]: payload.TS.toLocaleString(),
54+
[`date${currIter}`]: new Date(payload.TS*1000).toLocaleString(),
5455
};
5556

5657
state.uiSettings.results[`${currTab}`].push(entry)
57-
58-
}
58+
window.console.error( 'ui.push:', state.uiSettings.results[`${currTab}`])
59+
// }
5960
},
6061

6162
clearResults(state){

0 commit comments

Comments
 (0)