fix: remove Promise.allSettled

This commit is contained in:
Arman committed 2023-04-11 17:32:33 +02:00
1 parent 8d09afb635
commit 0eb5e09046
1 file changed
+1 -1
@@ -33,7 +33,7 @@
async function submit() {
try {
await option.update(databaseId, collectionId, selectedAttribute);
await Promise.allSettled([invalidate(Dependencies.COLLECTION)]);
await invalidate(Dependencies.COLLECTION);
if (!$page.url.pathname.includes('attributes')) {
await goto(
`${base}/console/project-${$page.params.project}/databases/database-${databaseId}/collection-${collectionId}/attributes`