File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pci-cold-archive/src/api/hooks
pci-object-storage/src/api/hooks Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments