Skip to content

Commit 93830e9

Browse files
authored
fix: mount ui5 web components only on the client (#6902)
1 parent 59a3324 commit 93830e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/internal/withWebComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export const withWebComponent = <Props extends Record<string, any>, RefType = Ui
188188
});
189189
}, [Component, ...propsToApply]);
190190

191-
if (waitForDefine && !isDefined) {
191+
if ((waitForDefine && !isDefined) || typeof window === 'undefined') {
192192
return null;
193193
}
194194

0 commit comments

Comments
 (0)