Moved add/remove maps/tokens to Observables to allow for cross session syncing
This commit is contained in:
@@ -147,7 +147,7 @@ function EditMapModal({ isOpen, onDone, mapId }) {
|
||||
<Label pt={2} pb={1}>
|
||||
Edit map
|
||||
</Label>
|
||||
{isLoading ? (
|
||||
{isLoading || !map ? (
|
||||
<Flex
|
||||
sx={{
|
||||
width: "100%",
|
||||
|
||||
@@ -84,7 +84,7 @@ function EditTokenModal({ isOpen, onDone, tokenId }) {
|
||||
<Label pt={2} pb={1}>
|
||||
Edit token
|
||||
</Label>
|
||||
{isLoading ? (
|
||||
{isLoading || !token ? (
|
||||
<Flex
|
||||
sx={{
|
||||
width: "100%",
|
||||
|
||||
@@ -160,7 +160,6 @@ function ImportExportModal({ isOpen, onRequestClose }) {
|
||||
db.close();
|
||||
setIsLoading(false);
|
||||
backgroundTaskRunningRef.current = false;
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
function exportSelectorFilter(table, value) {
|
||||
|
||||
Reference in New Issue
Block a user