Skip to content

Commit 4aaf640

Browse files
committed
fixing linter issues
1 parent fc6e069 commit 4aaf640

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/Dashboard/EditBulkTerms/EditBulkTermsDialog.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ const EditBulkTermsDialog = ({ open, handleClose, activeStep, setActiveStep }) =
7777
const [ontologyTerms, setOntologyTerms] = useState([]);
7878
const [ontologyAttributes, setOntologyAttributes] = useState([]);
7979
const [selectedOntology, setSelectedOntology] = useState(null);
80-
// eslint-disable-next-line no-unused-vars
8180
const [originalTerms, setOriginalTerms] = useState([]);
8281
const [jsonLdContext, setJsonLdContext] = useState({});
8382
const [batchUpdateResults, setBatchUpdateResults] = useState(null);
@@ -113,7 +112,7 @@ const EditBulkTermsDialog = ({ open, handleClose, activeStep, setActiveStep }) =
113112
if (Array.isArray(arr)) {
114113
return arr.map(item => rawNodeItemToRdfObject(item, context)).filter(Boolean);
115114
}
116-
} catch {}
115+
} catch (_e) { /* not valid JSON array, fall through to plain literal */ }
117116
return [{ type: 'literal', value: String(value) }];
118117
};
119118

src/components/Dashboard/EditBulkTerms/SearchTerms.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const SearchTerms = ({ searchConditions, setSearchConditions, initialSearchCondi
241241
} finally {
242242
setAttributesLoading(false);
243243
}
244-
}, [setOntologyAttributes, setOntologyTerms, setSelectedOntology, setOriginalTerms]);
244+
}, [setOntologyAttributes, setOntologyTerms, setSelectedOntology, setOriginalTerms, setJsonLdContext]);
245245

246246
const updatedColumnsArray = useMemo(() => {
247247
// If an ontology is selected and we have attributes, use those

0 commit comments

Comments
 (0)