From 59725511f6716acb210b56456acc05a6cbb29f9d Mon Sep 17 00:00:00 2001 From: irismarie Date: Thu, 11 Feb 2021 10:04:33 +0100 Subject: [PATCH] simplify timestamp after editing --- src/result/result-store.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/result/result-store.js b/src/result/result-store.js index afd37dc..1ba1fde 100644 --- a/src/result/result-store.js +++ b/src/result/result-store.js @@ -15,10 +15,8 @@ * along with VILLASweb. If not, see . ******************************************************************************/ - import ArrayStore from '../common/array-store'; import ResultsDataManager from './results-data-manager'; -import FilesDataManager from '../file/files-data-manager' class ResultStore extends ArrayStore { constructor() { @@ -54,6 +52,10 @@ class ResultStore extends ArrayStore { this.simplifyTimestamps([action.data]); return super.reduce(state, action); + case 'results/edited': + this.simplifyTimestamps([action.data]); + return super.reduce(state, action); + case 'resultfiles/start-upload': ResultsDataManager.uploadFile(action.data, action.resultID, action.token, action.progressCallback, action.finishedCallback, action.scenarioID); return state;