Skip to content

Commit

Permalink
Don't assume dataModel exists for model in isReadOnly #247
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed May 7, 2024
1 parent 265d330 commit 5aca566
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class EditModelWidgetRenderer implements ModelWidgetRenderer {
}

private static boolean isReadOnly(WidgetRenderContext context) {
context.model.readonly || context.dataModel.computed
context.model.readonly || context.dataModel?.computed
}
@Override
void renderSelectMany(WidgetRenderContext context) {
Expand Down

2 comments on commit 5aca566

@chrisala
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@temi can you please review this?

@temi
Copy link
Contributor

@temi temi commented on 5aca566 May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Please sign in to comment.