ignore fileOpen error when user cancels (#1486)
This commit is contained in:
parent
1866074c07
commit
a4b49ea350
@ -112,6 +112,10 @@ export const actionLoadScene = register({
|
|||||||
updateData({ elements: elements, appState: appState });
|
updateData({ elements: elements, appState: appState });
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
// if user cancels, ignore the error
|
||||||
|
if (error.name === "AbortError") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateData({ error: error.message });
|
updateData({ error: error.message });
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user