fix: ensure loading in toggled (#571)

This commit is contained in:
Hayden 2023-10-06 16:22:16 -05:00 committed by GitHub
parent b28bb2c4a8
commit f3f96723b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -122,6 +122,7 @@
};
const { error, data } = await api.items.create(out);
loading.value = false;
if (error) {
toast.error("Couldn't create item");
return;

View file

@ -77,6 +77,7 @@
const { error, data } = await api.labels.create(form);
if (error) {
toast.error("Couldn't create label");
loading.value = false;
return;
}

View file

@ -85,6 +85,7 @@
});
if (error) {
loading.value = false;
toast.error("Couldn't create location");
}