@zac-apps/commons 1.3.2 → 1.3.3
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -497,8 +497,8 @@ function SpecSwitch(_ref) {
|
|
|
497
497
|
SetSpec = _ref.SetSpec,
|
|
498
498
|
SetFilter = _ref.SetFilter,
|
|
499
499
|
routerActive = _ref.routerActive;
|
|
500
|
-
var router = useRouter();
|
|
501
|
-
var pathname = usePathname();
|
|
500
|
+
var router = routerActive ? useRouter() : null;
|
|
501
|
+
var pathname = routerActive ? usePathname() : null;
|
|
502
502
|
return /*#__PURE__*/jsx(React__default.Fragment, {
|
|
503
503
|
children: /*#__PURE__*/jsx(Grid, {
|
|
504
504
|
children: /*#__PURE__*/jsx(ToggleButtonGroup, {
|