fix: Some spots where navigation state was not preserved

fix: Collection in main nav pops open when moving from starred collection
This commit is contained in:
Tom Moor
2022-04-04 19:04:28 -07:00
parent 26b5fa82e3
commit 20a69b711a
5 changed files with 11 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ const CollectionLink: React.FC<Props> = ({
await collection.save({
name,
});
history.push(collection.url);
history.replace(collection.url, history.location.state);
},
[collection, history]
);