eleven-solutions-common-website-unique-web 4.0.16 → 4.0.17
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.
| @@ -94,8 +94,12 @@ const TaxonomyForm = () => { | |
| 94 94 | 
             
                            yield addTaxonomyApi(inputType, Number(code), value);
         | 
| 95 95 | 
             
                            alert("Taxonomy added successfully");
         | 
| 96 96 | 
             
                        }
         | 
| 97 | 
            +
                        // window.history.pushState({}, "", "/admin/taxinomies");
         | 
| 98 | 
            +
                        // window.dispatchEvent(new PopStateEvent("popstate"));
         | 
| 99 | 
            +
                        console.log("Navigating to /admin/taxinomies");
         | 
| 97 100 | 
             
                        window.history.pushState({}, "", "/admin/taxinomies");
         | 
| 98 101 | 
             
                        window.dispatchEvent(new PopStateEvent("popstate"));
         | 
| 102 | 
            +
                        console.log("Navigation event dispatched");
         | 
| 99 103 | 
             
                    }
         | 
| 100 104 | 
             
                    catch (error) {
         | 
| 101 105 | 
             
                        console.error("Error adding/updating Taxonomy:", error);
         | 
    
        package/package.json
    CHANGED
    
    
| @@ -125,8 +125,12 @@ const TaxonomyForm = () => { | |
| 125 125 | 
             
                    await addTaxonomyApi(inputType, Number(code), value);
         | 
| 126 126 | 
             
                    alert("Taxonomy added successfully");
         | 
| 127 127 | 
             
                  }
         | 
| 128 | 
            +
                  // window.history.pushState({}, "", "/admin/taxinomies");
         | 
| 129 | 
            +
                  // window.dispatchEvent(new PopStateEvent("popstate"));
         | 
| 130 | 
            +
                  console.log("Navigating to /admin/taxinomies");
         | 
| 128 131 | 
             
                  window.history.pushState({}, "", "/admin/taxinomies");
         | 
| 129 132 | 
             
                  window.dispatchEvent(new PopStateEvent("popstate"));
         | 
| 133 | 
            +
                  console.log("Navigation event dispatched");
         | 
| 130 134 | 
             
                } catch (error) {
         | 
| 131 135 | 
             
                  console.error("Error adding/updating Taxonomy:", error);
         | 
| 132 136 | 
             
                  alert("Failed to add/update Taxonomy");
         |