eleven-solutions-common-website-unique-web 4.0.9 → 4.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -245,7 +245,7 @@ const TaxonomyForm = () => {
|
|
245
245
|
alert("Multiple taxonomies added successfully");
|
246
246
|
const response = yield fetchTaxonomiessApi();
|
247
247
|
// const filteredTaxonomies = response.filter(
|
248
|
-
const filteredTaxonomies = response.filter((taxonomy) => taxonomy.type ===
|
248
|
+
const filteredTaxonomies = response.filter((taxonomy) => taxonomy.type === inputType);
|
249
249
|
setSimilarTaxonomies(filteredTaxonomies);
|
250
250
|
}
|
251
251
|
catch (error) {
|
package/package.json
CHANGED
@@ -304,7 +304,7 @@ const TaxonomyForm = () => {
|
|
304
304
|
const response = await fetchTaxonomiessApi();
|
305
305
|
// const filteredTaxonomies = response.filter(
|
306
306
|
const filteredTaxonomies = (response as { type: string }[]).filter(
|
307
|
-
(taxonomy: { type: string }) => taxonomy.type ===
|
307
|
+
(taxonomy: { type: string }) => taxonomy.type === inputType
|
308
308
|
);
|
309
309
|
setSimilarTaxonomies(filteredTaxonomies);
|
310
310
|
} catch (error) {
|