eleven-solutions-common-website-unique-web 7.0.2 → 7.0.4
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.
@@ -183,6 +183,7 @@ const TaxonomyForm = () => {
|
|
183
183
|
setEditTaxonomyItem(null);
|
184
184
|
setEditTempTaxonomyItem(null);
|
185
185
|
setIsModalOpen(true);
|
186
|
+
setIsAddingSubType(false);
|
186
187
|
};
|
187
188
|
const handleCloseModal = () => {
|
188
189
|
setIsModalOpen(false);
|
@@ -229,6 +230,7 @@ const TaxonomyForm = () => {
|
|
229
230
|
const handleAddSubType = (index, id) => {
|
230
231
|
const item = similarTaxonomies[index];
|
231
232
|
setSelectedTaxonomyId(id);
|
233
|
+
setEditTaxonomyItem(null);
|
232
234
|
setNewCode(item.code);
|
233
235
|
setNewValue(item.value);
|
234
236
|
setIsModalOpen(true);
|
@@ -246,7 +248,6 @@ const TaxonomyForm = () => {
|
|
246
248
|
catch (error) {
|
247
249
|
console.error("Error adding SubType:", error);
|
248
250
|
}
|
249
|
-
setEditTaxonomyItem(null);
|
250
251
|
setIsModalOpen(false);
|
251
252
|
setSubType("");
|
252
253
|
setSubCode("");
|
package/package.json
CHANGED
@@ -222,6 +222,8 @@ const TaxonomyForm = () => {
|
|
222
222
|
setEditTaxonomyItem(null);
|
223
223
|
setEditTempTaxonomyItem(null);
|
224
224
|
setIsModalOpen(true);
|
225
|
+
|
226
|
+
setIsAddingSubType(false);
|
225
227
|
};
|
226
228
|
|
227
229
|
const handleCloseModal = () => {
|
@@ -280,6 +282,8 @@ const TaxonomyForm = () => {
|
|
280
282
|
const item = similarTaxonomies[index];
|
281
283
|
setSelectedTaxonomyId(id);
|
282
284
|
|
285
|
+
setEditTaxonomyItem(null);
|
286
|
+
|
283
287
|
setNewCode(item.code);
|
284
288
|
setNewValue(item.value);
|
285
289
|
setIsModalOpen(true);
|
@@ -302,7 +306,6 @@ const TaxonomyForm = () => {
|
|
302
306
|
} catch (error) {
|
303
307
|
console.error("Error adding SubType:", error);
|
304
308
|
}
|
305
|
-
setEditTaxonomyItem(null);
|
306
309
|
setIsModalOpen(false);
|
307
310
|
setSubType("");
|
308
311
|
setSubCode("");
|