Skip to content

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

minor changes

sytolk6803f01bbaa7
diff --git a/src/renderer/components/dialogs/hooks/MenuContextProvider.tsx b/src/renderer/components/dialogs/hooks/MenuContextProvider.tsx
index c8be91e1f..c1fcb2c09 100644
--- a/src/renderer/components/dialogs/hooks/MenuContextProvider.tsx
+++ b/src/renderer/components/dialogs/hooks/MenuContextProvider.tsx
@@ -29,7 +29,6 @@ import LoadingLazy from '-/components/LoadingLazy';
import { TS } from '-/tagspaces.namespace';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { Pro } from '-/pro';
-import { useNotificationContext } from '-/hooks/useNotificationContext';
type MenuContextData = {
openMenu: (
diff --git a/src/renderer/hooks/LocationIndexContextProvider.tsx b/src/renderer/hooks/LocationIndexContextProvider.tsx
index 2570ec056..3c17ec374 100644
--- a/src/renderer/hooks/LocationIndexContextProvider.tsx
+++ b/src/renderer/hooks/LocationIndexContextProvider.tsx
@@ -508,11 +508,13 @@ export const LocationIndexContextProvider = ({
}
function createLocationIndexInt(location: CommonLocation): Promise<boolean> {
+ if (location) {
+ isIndexing.current = location.uuid;
+ forceUpdate();
+ }
return getLocationPath(location).then((locationPath) => {
const isCurrentLocation =
currentLocation && currentLocation.uuid === location.uuid;
- isIndexing.current = location.name;
- forceUpdate();
return createDirectoryIndexWrapper(
{ path: locationPath, locationID: location.uuid },
location.fullTextIndex,