diff --git a/src/api/snapshots.tsx b/src/api/snapshots.tsx index e59261548..cfc99a0dd 100644 --- a/src/api/snapshots.tsx +++ b/src/api/snapshots.tsx @@ -59,18 +59,7 @@ export const deleteSnapshotBulk = ( ) ) .then(resolve) - .catch((e: Error) => { - // A hack to ignore this error, should be removed once fixed in - // @see https://github.com/lxc/lxd/issues/11538 - const msg = - "Instance snapshot record count doesn't match instance snapshot volume record count"; - const isNotError = e.toString().includes(msg); - if (isNotError) { - setTimeout(() => resolve(e), 1000); - } else { - reject(e); - } - }); + .catch(reject); }); }; diff --git a/src/pages/instances/actions/snapshots/SnapshotBulkDelete.tsx b/src/pages/instances/actions/snapshots/SnapshotBulkDelete.tsx index d681c4953..b98b09f6d 100644 --- a/src/pages/instances/actions/snapshots/SnapshotBulkDelete.tsx +++ b/src/pages/instances/actions/snapshots/SnapshotBulkDelete.tsx @@ -58,7 +58,7 @@ const SnapshotBulkDelete: FC = ({ title: "Confirm delete", children: ( <> - This will permanently delete {count} + This will permanently delete {count}{" "} {pluralizeSnapshot(count)} .
This action cannot be undone, and can result in data loss.