We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06681dc commit 3edeff9Copy full SHA for 3edeff9
1 file changed
src/hooks/usePath.ts
@@ -182,7 +182,13 @@ export const usePath = () => {
182
ObjStore.setDirectUploadTools(data.direct_upload_tools)
183
shouldKeepState() || ObjStore.setState(State.Folder)
184
},
185
- handleErr,
+ onlyList
186
+ ? (msg: string, code?: number) => {
187
+ if (code !== 403) {
188
+ handleErr(msg, code)
189
+ }
190
191
+ : handleErr,
192
)
193
}
194
0 commit comments