@star-insure/sdk 3.1.2 → 3.1.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/lib/page.d.ts +1 -1
- package/dist/sdk.cjs.development.js +2 -1
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +2 -1
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/filter/Back.tsx +1 -0
- package/src/lib/page.tsx +1 -1
package/dist/sdk.esm.js
CHANGED
|
@@ -2246,7 +2246,8 @@ function BackButton(_ref) {
|
|
|
2246
2246
|
|
|
2247
2247
|
React__default.useEffect(function () {
|
|
2248
2248
|
if (typeof window !== 'undefined') {
|
|
2249
|
-
// Set back button URL
|
|
2249
|
+
if (!breadcrumbs) return; // Set back button URL
|
|
2250
|
+
|
|
2250
2251
|
if (back && typeof back === 'boolean') {
|
|
2251
2252
|
// If we haven't provided a path as a prop, use the last breadcrumb that's not the current one
|
|
2252
2253
|
var crumb = breadcrumbs.slice(breadcrumbs.length - 2, breadcrumbs.length - 1);
|