From e3917ee79a5e31d70e74f9dbc0699e7c863f15e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Syn=C3=A1=C4=8Dek?= Date: Tue, 15 Dec 2020 22:00:45 +0100 Subject: [PATCH] feature: update event store contents from existing code --- lib/static/app/storage.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/static/app/storage.js b/lib/static/app/storage.js index 199987a..d7e3847 100644 --- a/lib/static/app/storage.js +++ b/lib/static/app/storage.js @@ -1,3 +1,6 @@ +// TODO: this import should be removed once refactoring is finished +import { eventStore } from '../../frontend/stores' + const migrateRecord = (record) => { // NOTE: v3 records const id = record.id || record.order @@ -64,6 +67,8 @@ const saveRecord = ({ id, link, createdAt, startTime, title }) => { } updateStorage([ ...storageContents, record ]) + + eventStore.setCalculation({ id, link, createdAt, startTime, title }) } const deleteRecord = (id) => {