eleven-solutions-common-website-unique-web 4.0.13 → 4.0.15

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.
@@ -108,7 +108,7 @@ const TaxonomyForm = () => {
108
108
  yield addTaxonomyApi(inputType, Number(code), value);
109
109
  alert("Taxonomy added successfully");
110
110
  }
111
- window.history.pushState({}, "", "/admin/users");
111
+ window.history.pushState({}, "", "/admin/taxinomies");
112
112
  window.dispatchEvent(new PopStateEvent("popstate"));
113
113
  }
114
114
  catch (error) {
@@ -191,7 +191,7 @@ const TaxonomyForm = () => {
191
191
  alert("Please fill in all required fields: Code, and Value.");
192
192
  return;
193
193
  }
194
- const newTaxonomyItem = { type: type, code: newCode, value: newValue };
194
+ const newTaxonomyItem = { type: inputType, code: newCode, value: newValue };
195
195
  if (editTempTaxonomyItem) {
196
196
  const updatedTempTaxonomy = tempTaxonomy.map((item) => item === editTempTaxonomyItem ? newTaxonomyItem : item);
197
197
  setTempTaxonomy(updatedTempTaxonomy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -144,7 +144,7 @@ const TaxonomyForm = () => {
144
144
  await addTaxonomyApi(inputType, Number(code), value);
145
145
  alert("Taxonomy added successfully");
146
146
  }
147
- window.history.pushState({}, "", "/admin/users");
147
+ window.history.pushState({}, "", "/admin/taxinomies");
148
148
  window.dispatchEvent(new PopStateEvent("popstate"));
149
149
  } catch (error) {
150
150
  console.error("Error adding/updating Taxonomy:", error);
@@ -236,7 +236,7 @@ const TaxonomyForm = () => {
236
236
  return;
237
237
  }
238
238
 
239
- const newTaxonomyItem = { type: type, code: newCode, value: newValue };
239
+ const newTaxonomyItem = { type: inputType, code: newCode, value: newValue };
240
240
 
241
241
  if (editTempTaxonomyItem) {
242
242
  const updatedTempTaxonomy = tempTaxonomy.map((item) =>