TagSpaces is an offline, open source, document manager with tagging support
chore: improving code readability
Ilian Sapundshievdcd3fb27745a
diff --git a/app/components/menus/DirectoryMenu.tsx b/app/components/menus/DirectoryMenu.tsxindex 6e1f805a1..948feab62 100644--- a/app/components/menus/DirectoryMenu.tsx+++ b/app/components/menus/DirectoryMenu.tsx@@ -253,9 +253,9 @@ function DirectoryMenu(props: Props) {// onClose();if (selectedEntries && selectedEntries.length === 1) {const sharingLink = generateFolderLink();- PlatformIO.createNewInstance(- window.location.href.split('?')[0] + '?' + sharingLink.split('?')[1]- );+ const newInstanceLink =+ window.location.href.split('?')[0] + '?' + sharingLink.split('?')[1];+ PlatformIO.createNewInstance(newInstanceLink);}}diff --git a/app/components/menus/FileMenu.tsx b/app/components/menus/FileMenu.tsxindex 2c19ca389..c18882deb 100644--- a/app/components/menus/FileMenu.tsx+++ b/app/components/menus/FileMenu.tsx@@ -298,9 +298,9 @@ function FileMenu(props: Props) {onClose();if (selectedEntries && selectedEntries.length === 1) {const sharingLink = generateFileLink();- PlatformIO.createNewInstance(- window.location.href.split('?')[0] + '?' + sharingLink.split('?')[1]- );+ const newInstanceLink =+ window.location.href.split('?')[0] + '?' + sharingLink.split('?')[1];+ PlatformIO.createNewInstance(newInstanceLink);}}