eleven-solutions-common-website-unique-web 4.0.34 → 4.0.35
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.
@@ -161,6 +161,7 @@ const TaxonomyForm = () => {
|
|
161
161
|
setSubValue("");
|
162
162
|
};
|
163
163
|
const handleAddClick = () => {
|
164
|
+
setIsAddingSubType(false);
|
164
165
|
if (newCode === "" || newValue === "") {
|
165
166
|
alert("Please fill in all required fields: Code, and Value.");
|
166
167
|
return;
|
@@ -212,6 +213,7 @@ const TaxonomyForm = () => {
|
|
212
213
|
setIsModalOpen(false);
|
213
214
|
});
|
214
215
|
const handleEditTaxClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
216
|
+
setIsAddingSubType(false);
|
215
217
|
try {
|
216
218
|
yield updateTaxonomyApi(selectedTaxonomyId, type, Number(newCode), newValue);
|
217
219
|
alert("Taxonomy updated successfully");
|
package/package.json
CHANGED
@@ -199,6 +199,7 @@ const TaxonomyForm = () => {
|
|
199
199
|
};
|
200
200
|
|
201
201
|
const handleAddClick = () => {
|
202
|
+
setIsAddingSubType(false);
|
202
203
|
if (newCode === "" || newValue === "") {
|
203
204
|
alert("Please fill in all required fields: Code, and Value.");
|
204
205
|
return;
|
@@ -265,6 +266,7 @@ const TaxonomyForm = () => {
|
|
265
266
|
};
|
266
267
|
|
267
268
|
const handleEditTaxClick = async () => {
|
269
|
+
setIsAddingSubType(false);
|
268
270
|
try {
|
269
271
|
await updateTaxonomyApi(
|
270
272
|
selectedTaxonomyId,
|