Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix material ui warning

Ilian Sapundshiev51014a5dc319
diff --git a/app/components/menus/DirectoryMenu.js b/app/components/menus/DirectoryMenu.js
index cf8c25428..e8a8259f6 100644
--- a/app/components/menus/DirectoryMenu.js
+++ b/app/components/menus/DirectoryMenu.js
@@ -408,7 +408,7 @@ const DirectoryMenu = (props: Props) => {
)}
<Divider />
{ !props.perspectiveMode && (
- <React.Fragment>
+ <div>
<MenuItem data-tid="openDefaultPerspecitve" onClick={() => switchPerspective('default')} title="Switch to default perspective">
<ListItemIcon>
<GalleryPerspectiveIcon />
@@ -428,7 +428,7 @@ const DirectoryMenu = (props: Props) => {
<ListItemText primary="Mapique Perspective" />
</MenuItem>
<Divider />
- </React.Fragment>
+ </div>
)}
{/* {!props.isReadOnlyMode && (
<React.Fragment>