Show unexpected errors on batchDelete

This commit is contained in:
rijkvanzanten
2021-10-08 10:58:11 -04:00
parent d3a4869a96
commit ecf255bf47

View File

@@ -174,6 +174,7 @@ import { useLayout } from '@/composables/use-layout';
import DrawerBatch from '@/views/private/components/drawer-batch';
import { Role } from '@directus/shared/types';
import { mergeFilters } from '@directus/shared/utils';
import { unexpectedError } from '@/utils/unexpected-error';
type Item = {
[field: string]: any;
@@ -301,6 +302,7 @@ export default defineComponent({
confirmDelete.value = false;
} catch (err: any) {
error.value = err;
unexpectedError(err);
} finally {
deleting.value = false;
}