Skip to content

Commit

Permalink
fix: useStoryblokState - PR comments fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serGlazkov committed Jan 3, 2024
1 parent 316ac04 commit 92648e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const useStoryblokState: TUseStoryblokState = (
) => {
const [story, setStory] = useState(initialStory);

const storyId = (initialStory as any).internalId || initialStory.id;
const storyId = (initialStory as any)?.internalId ?? initialStory?.id ?? 0;
const isBridgeEnabled = typeof window !== "undefined" &&
typeof window.storyblokRegisterEvent !== "undefined";

Expand Down

0 comments on commit 92648e1

Please sign in to comment.