Replace URL on config update, rather than push an entry

This commit is contained in:
Jonathan Clem
2020-03-10 12:48:39 -04:00
parent 6fa6718a88
commit 824111df12
+1 -1
View File
@@ -38,7 +38,7 @@ const handleConfUpdate = conf => {
console.log('Error in parsed', e);
configErrorStore.set(e);
const str = JSON.stringify({ code, mermaid: oldConf });
push('/edit/' + Base64.encodeURI(str))
replace('/edit/' + Base64.encodeURI(str))
}
};