Skip to content

Commit a797536

Browse files
authored
Merge pull request #758 from bodintsov/fix/user-revieves-an-error-message-when-navigating-to-unloadable-addon
[ENG-9568] Fix empty when error from files provider
2 parents 758cd4f + f9073ba commit a797536

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/features/files/store/files.state.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export class FilesState {
6464
isAnonymous: response.meta?.anonymous ?? false,
6565
});
6666
}),
67-
catchError((error) => handleSectionError(ctx, 'files', error))
67+
catchError((error) => {
68+
ctx.patchState({ files: FILES_STATE_DEFAULTS.files });
69+
return handleSectionError(ctx, 'files', error);
70+
})
6871
);
6972
}
7073

0 commit comments

Comments
 (0)