Skip to content

Commit a43b15d

Browse files
committed
fix(object-storage): error message not handle
ref: #TAPC-4693 Signed-off-by: Lionel Bueno <[email protected]>
1 parent a90d11c commit a43b15d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/manager/apps/pci-cold-archive/src/api/hooks/useUsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export const useImportPolicy = ({
302302
setIsPending(true);
303303
const policy = await readFileAsJSON(files[0], t);
304304

305-
importUserPolicy(projectId, userId, policy);
305+
await importUserPolicy(projectId, userId, policy);
306306
onSuccess();
307307
} catch (e) {
308308
onError(e as Error);

packages/manager/apps/pci-object-storage/src/api/hooks/useUser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export const useImportPolicy = ({
211211
setIsPending(true);
212212
const policy = await readFileAsJSON(files[0], t);
213213

214-
importUserPolicy(projectId, userId, policy);
214+
await importUserPolicy(projectId, userId, policy);
215215
onSuccess();
216216
} catch (e) {
217217
onError(e as Error);

0 commit comments

Comments
 (0)