eleven-solutions-common-website-unique-web 4.0.35 → 4.0.36
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,7 +161,6 @@ const TaxonomyForm = () => {
|
|
161
161
|
setSubValue("");
|
162
162
|
};
|
163
163
|
const handleAddClick = () => {
|
164
|
-
setIsAddingSubType(false);
|
165
164
|
if (newCode === "" || newValue === "") {
|
166
165
|
alert("Please fill in all required fields: Code, and Value.");
|
167
166
|
return;
|
@@ -187,6 +186,7 @@ const TaxonomyForm = () => {
|
|
187
186
|
setIsModalOpen(true);
|
188
187
|
};
|
189
188
|
const handleEditClick = (index, id) => {
|
189
|
+
setIsAddingSubType(false);
|
190
190
|
const item = similarTaxonomies[index];
|
191
191
|
setSelectedTaxonomyId(id);
|
192
192
|
setEditTaxonomyItem(item);
|
@@ -213,7 +213,6 @@ const TaxonomyForm = () => {
|
|
213
213
|
setIsModalOpen(false);
|
214
214
|
});
|
215
215
|
const handleEditTaxClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
216
|
-
setIsAddingSubType(false);
|
217
216
|
try {
|
218
217
|
yield updateTaxonomyApi(selectedTaxonomyId, type, Number(newCode), newValue);
|
219
218
|
alert("Taxonomy updated successfully");
|
package/package.json
CHANGED
@@ -199,7 +199,6 @@ const TaxonomyForm = () => {
|
|
199
199
|
};
|
200
200
|
|
201
201
|
const handleAddClick = () => {
|
202
|
-
setIsAddingSubType(false);
|
203
202
|
if (newCode === "" || newValue === "") {
|
204
203
|
alert("Please fill in all required fields: Code, and Value.");
|
205
204
|
return;
|
@@ -231,6 +230,8 @@ const TaxonomyForm = () => {
|
|
231
230
|
};
|
232
231
|
|
233
232
|
const handleEditClick = (index: number, id: string) => {
|
233
|
+
setIsAddingSubType(false);
|
234
|
+
|
234
235
|
const item = similarTaxonomies[index];
|
235
236
|
setSelectedTaxonomyId(id);
|
236
237
|
|
@@ -266,7 +267,6 @@ const TaxonomyForm = () => {
|
|
266
267
|
};
|
267
268
|
|
268
269
|
const handleEditTaxClick = async () => {
|
269
|
-
setIsAddingSubType(false);
|
270
270
|
try {
|
271
271
|
await updateTaxonomyApi(
|
272
272
|
selectedTaxonomyId,
|