eleven-solutions-common-website-unique-web 6.0.9 → 6.0.10

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.
@@ -40,7 +40,6 @@ const TaxonomyForm = () => {
40
40
  };
41
41
  const queryParams = new URLSearchParams(window.location.search);
42
42
  const id = queryParams.get("id");
43
- // Fetch taxonomy data if id exists
44
43
  useEffect(() => {
45
44
  if (id) {
46
45
  const fetchTaxonomyData = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -95,10 +94,8 @@ const TaxonomyForm = () => {
95
94
  yield addTaxonomyApi(inputType, Number(code), value);
96
95
  alert("Taxonomy added successfully");
97
96
  }
98
- console.log("Navigating to /admin/taxinomies");
99
97
  window.history.pushState({}, "", "/admin/taxinomies");
100
98
  window.dispatchEvent(new PopStateEvent("popstate"));
101
- console.log("Navigation event dispatched");
102
99
  }
103
100
  catch (error) {
104
101
  console.error("Error adding/updating Taxonomy:", error);
@@ -253,6 +250,7 @@ const TaxonomyForm = () => {
253
250
  });
254
251
  useEffect(() => {
255
252
  similarTaxonomies.forEach((taxonomy) => {
253
+ console.log("Taxonomy:", taxonomy);
256
254
  console.log("Parent ID:", taxonomy.parentId);
257
255
  });
258
256
  }, [similarTaxonomies]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "6.0.9",
3
+ "version": "6.0.10",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -65,7 +65,6 @@ const TaxonomyForm = () => {
65
65
  const queryParams = new URLSearchParams(window.location.search);
66
66
  const id = queryParams.get("id");
67
67
 
68
- // Fetch taxonomy data if id exists
69
68
  useEffect(() => {
70
69
  if (id) {
71
70
  const fetchTaxonomyData = async () => {
@@ -128,10 +127,8 @@ const TaxonomyForm = () => {
128
127
  await addTaxonomyApi(inputType, Number(code), value);
129
128
  alert("Taxonomy added successfully");
130
129
  }
131
- console.log("Navigating to /admin/taxinomies");
132
130
  window.history.pushState({}, "", "/admin/taxinomies");
133
131
  window.dispatchEvent(new PopStateEvent("popstate"));
134
- console.log("Navigation event dispatched");
135
132
  } catch (error) {
136
133
  console.error("Error adding/updating Taxonomy:", error);
137
134
  alert("Failed to add/update Taxonomy");
@@ -316,6 +313,7 @@ const TaxonomyForm = () => {
316
313
 
317
314
  useEffect(() => {
318
315
  similarTaxonomies.forEach((taxonomy) => {
316
+ console.log("Taxonomy:", taxonomy);
319
317
  console.log("Parent ID:", taxonomy.parentId);
320
318
  });
321
319
  }, [similarTaxonomies]);