Skip to content

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

Unneeded attributes in the location export (#2285)

Stanimir3992b36df38b
diff --git a/src/renderer/components/LocationManager.tsx b/src/renderer/components/LocationManager.tsx
index 3a8d6eaa7..4b4221b7d 100644
--- a/src/renderer/components/LocationManager.tsx
+++ b/src/renderer/components/LocationManager.tsx
@@ -53,7 +53,6 @@ function LocationManager(props: Props) {
const {
locations,
findLocation,
- addLocations,
moveLocation,
deleteLocation,
selectedLocation,
@@ -248,7 +247,6 @@ function LocationManager(props: Props) {
<ExportLocationsDialog
open={isExportLocationsDialogOpened}
onClose={() => setExportLocationsDialogOpened(false)}
- locations={locations.filter((location) => !location.isNotEditable)}
/>
)}
{ImportLocationsDialog && importFile && (
@@ -256,8 +254,6 @@ function LocationManager(props: Props) {
open={Boolean(importFile)}
onClose={() => setImportFile(undefined)}
importFile={importFile}
- addLocations={(loc) => addLocations(loc)}
- locations={locations}
/>
)}
</Box>