eleven-solutions-common-website-unique-web 19.0.15 → 19.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,10 +279,9 @@ const TaxonomyForm = ({ url }) => {
|
|
279
279
|
try {
|
280
280
|
yield addTaxonomyApi(url, type, Number(newCode), newValue);
|
281
281
|
alert("Value added successfully");
|
282
|
-
const
|
283
|
-
|
284
|
-
|
285
|
-
}
|
282
|
+
const response = yield fetchTaxonomiessApi(url);
|
283
|
+
const filteredTaxonomies = response.filter((taxonomy) => taxonomy.type === type);
|
284
|
+
setSimilarTaxonomies(filteredTaxonomies);
|
286
285
|
}
|
287
286
|
catch (error) {
|
288
287
|
console.error("Error adding value:", error);
|
package/package.json
CHANGED
@@ -365,10 +365,11 @@ const TaxonomyForm = ({ url }: TaxionomyFormProps) => {
|
|
365
365
|
await addTaxonomyApi(url, type, Number(newCode), newValue);
|
366
366
|
|
367
367
|
alert("Value added successfully");
|
368
|
-
const
|
369
|
-
|
370
|
-
|
371
|
-
|
368
|
+
const response = await fetchTaxonomiessApi(url);
|
369
|
+
const filteredTaxonomies = (response as { type: string }[]).filter(
|
370
|
+
(taxonomy: { type: string }) => taxonomy.type === type
|
371
|
+
);
|
372
|
+
setSimilarTaxonomies(filteredTaxonomies);
|
372
373
|
} catch (error) {
|
373
374
|
console.error("Error adding value:", error);
|
374
375
|
}
|