eleven-solutions-common-website-unique-web 4.0.32 → 4.0.33
Sign up to get free protection for your applications and to get access to all the features.
@@ -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,
|