Skip to content

Commit 83cfb9b

Browse files
authored
fix(boilerplate): check params undef (#2549 by @frankcalise)
1 parent 4b3b60a commit 83cfb9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boilerplate/app/screens/DemoShowroomScreen/DemoShowroomScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const DemoShowroomScreen: FC<DemoTabScreenProps<"DemoShowroom">> =
9797

9898
// handle Web links
9999
React.useEffect(() => {
100-
if (Object.keys(params).length > 0) {
100+
if (params !== undefined && Object.keys(params).length > 0) {
101101
const demoValues = Object.values(Demos)
102102
const findSectionIndex = demoValues.findIndex(
103103
(x) => x.name.toLowerCase() === params.queryIndex,

0 commit comments

Comments
 (0)