Added error on reject
This commit is contained in:
parent
360d40a2a5
commit
197ac22aea
1 changed files with 2 additions and 2 deletions
|
|
@ -42,10 +42,10 @@ export const useFolderStore = create<FoldersStoreType>((set, get) => ({
|
|||
get().setLoading(false);
|
||||
resolve();
|
||||
},
|
||||
() => {
|
||||
(error) => {
|
||||
set({ folders: [] });
|
||||
get().setLoading(false);
|
||||
reject();
|
||||
reject(error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue