TagSpaces is an offline, open source, document manager with tagging support
fix createNewLocation dialog after edit Location
sytolkc263faa1fb44
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsxindex bd3aed049..dd48b04e2 100644--- a/src/renderer/components/MobileNavigation.tsx+++ b/src/renderer/components/MobileNavigation.tsx@@ -75,6 +75,7 @@ import PlatformIO from '-/services/platform-facade';import AppConfig from '-/AppConfig';import { useTranslation } from 'react-i18next';import { getKeyBindingObject } from '-/reducers/settings';+import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';const PREFIX = 'MobileNavigation';@@ -102,6 +103,7 @@ function MobileNavigation(props: Props) {const { t } = useTranslation();const dispatch: AppDispatch = useDispatch();+ const { setSelectedLocation } = useCurrentLocationContext();const keyBindings = useSelector(getKeyBindingObject);const isLocationManagerPanelOpenedSelector = useSelector(isLocationManagerPanelOpened,@@ -311,6 +313,7 @@ function MobileNavigation(props: Props) {key="createNewLocationTID"ata-tid="createNewFolderTID"onClick={() => {+ setSelectedLocation(undefined);dispatch(AppActions.toggleLocationDialog());setOpenCreateMenu(false);if (hideDrawer) {