diff --git a/src/scenes/Atlas/AtlasStore.js b/src/scenes/Atlas/AtlasStore.js index b8c05a5bb..d103de558 100644 --- a/src/scenes/Atlas/AtlasStore.js +++ b/src/scenes/Atlas/AtlasStore.js @@ -10,6 +10,7 @@ const store = new class AtlasStore { @action fetchAtlas = async (id) => { this.isFetching = true; + this.atlas = null; try { const res = await client.post('/atlases.info', { id: id }); diff --git a/src/scenes/DocumentScene/DocumentSceneStore.js b/src/scenes/DocumentScene/DocumentSceneStore.js index ffd11c47b..e04e9f80d 100644 --- a/src/scenes/DocumentScene/DocumentSceneStore.js +++ b/src/scenes/DocumentScene/DocumentSceneStore.js @@ -12,6 +12,7 @@ const store = new class DocumentSceneStore { @action fetchDocument = async (id) => { this.isFetching = true; + this.document = null; try { const res = await client.post('/documents.info', { id: id });