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) => {