+
+ {t('generic_something_went_wrong')}
+
+
+ )
+}
diff --git a/services/web/frontend/js/features/history/components/history-file-tree.tsx b/services/web/frontend/js/features/history/components/history-file-tree.tsx
index 9b8e70dc7f..8433a4b8c9 100644
--- a/services/web/frontend/js/features/history/components/history-file-tree.tsx
+++ b/services/web/frontend/js/features/history/components/history-file-tree.tsx
@@ -7,13 +7,13 @@ import {
import HistoryFileTreeFolderList from './file-tree/history-file-tree-folder-list'
export default function HistoryFileTree() {
- const { files } = useHistoryContext().selection
+ const { selection, error } = useHistoryContext()
- const fileTree = _.reduce(files, reducePathsToTree, [])
+ const fileTree = _.reduce(selection.files, reducePathsToTree, [])
const mappedFileTree = fileTreeDiffToFileTreeData(fileTree)
- return (
+ return error ? null : (