eleven-solutions-common-website-unique-web 3.0.26 → 3.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,7 @@ const TaxonomyForm = () => {
35
35
  };
36
36
  const queryParams = new URLSearchParams(window.location.search);
37
37
  const id = queryParams.get("id");
38
+ console.log(id);
38
39
  // Fetch taxonomy data if id exists
39
40
  useEffect(() => {
40
41
  if (id) {
@@ -82,9 +83,9 @@ const TaxonomyForm = () => {
82
83
  if (window.location.pathname === "/taxonomy/taxonomyform") {
83
84
  setIsSimilarTaxonomyOpen(true);
84
85
  }
85
- else {
86
- setIsSimilarTaxonomyOpen(false);
87
- }
86
+ // else {
87
+ // setIsSimilarTaxonomyOpen(false);
88
+ // }
88
89
  };
89
90
  handleLocationChange();
90
91
  window.addEventListener("popstate", handleLocationChange);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "3.0.26",
3
+ "version": "3.0.27",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -57,6 +57,8 @@ const TaxonomyForm = () => {
57
57
  const queryParams = new URLSearchParams(window.location.search);
58
58
  const id = queryParams.get("id");
59
59
 
60
+ console.log(id);
61
+
60
62
  // Fetch taxonomy data if id exists
61
63
  useEffect(() => {
62
64
  if (id) {
@@ -111,9 +113,10 @@ const TaxonomyForm = () => {
111
113
  const handleLocationChange = () => {
112
114
  if (window.location.pathname === "/taxonomy/taxonomyform") {
113
115
  setIsSimilarTaxonomyOpen(true);
114
- } else {
115
- setIsSimilarTaxonomyOpen(false);
116
116
  }
117
+ // else {
118
+ // setIsSimilarTaxonomyOpen(false);
119
+ // }
117
120
  };
118
121
 
119
122
  handleLocationChange();