eleven-solutions-common-website-unique-web 7.0.2 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -229,6 +229,7 @@ const TaxonomyForm = () => {
229
229
  const handleAddSubType = (index, id) => {
230
230
  const item = similarTaxonomies[index];
231
231
  setSelectedTaxonomyId(id);
232
+ setEditTaxonomyItem(null);
232
233
  setNewCode(item.code);
233
234
  setNewValue(item.value);
234
235
  setIsModalOpen(true);
@@ -246,7 +247,6 @@ const TaxonomyForm = () => {
246
247
  catch (error) {
247
248
  console.error("Error adding SubType:", error);
248
249
  }
249
- setEditTaxonomyItem(null);
250
250
  setIsModalOpen(false);
251
251
  setSubType("");
252
252
  setSubCode("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -280,6 +280,8 @@ const TaxonomyForm = () => {
280
280
  const item = similarTaxonomies[index];
281
281
  setSelectedTaxonomyId(id);
282
282
 
283
+ setEditTaxonomyItem(null);
284
+
283
285
  setNewCode(item.code);
284
286
  setNewValue(item.value);
285
287
  setIsModalOpen(true);
@@ -302,7 +304,6 @@ const TaxonomyForm = () => {
302
304
  } catch (error) {
303
305
  console.error("Error adding SubType:", error);
304
306
  }
305
- setEditTaxonomyItem(null);
306
307
  setIsModalOpen(false);
307
308
  setSubType("");
308
309
  setSubCode("");