Skip to content

Commit 54916f7

Browse files
committed
minor fix
1 parent 3fcad8c commit 54916f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/client/src/widgets/withWidgetProps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function withWidgetProps(WrappedWidget: typeof BaseWidget) {
159159
// widgets in page mode as they are not editable and mimics the behavior of view mode.
160160
// Since in app's edit mode the default render mode is canvas and due to this some widgets do not behave
161161
// properly.
162-
if (widget.overrideRenderMode) {
162+
if (widget?.overrideRenderMode) {
163163
renderMode = widget.overrideRenderMode;
164164
}
165165

0 commit comments

Comments
 (0)