diy-template-components 2.0.50 → 2.0.51
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/build/index.es.js +2 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1076,7 +1076,8 @@ function OptionList({
|
|
|
1076
1076
|
function checkIsActiveTab(slug = "") {
|
|
1077
1077
|
if (typeof window !== "undefined") {
|
|
1078
1078
|
const pathname = window.location.pathname;
|
|
1079
|
-
|
|
1079
|
+
const slugFromPathname = pathname?.split('/')[1];
|
|
1080
|
+
if (slug && slugFromPathname.includes(slug)) {
|
|
1080
1081
|
return true;
|
|
1081
1082
|
} else {
|
|
1082
1083
|
return false;
|