Skip to content

Commit

Permalink
Only use canUserEditValue when setValues is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Sep 23, 2024
1 parent 7f87eef commit ad24f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/blocks/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ export function blockBindingsSources( state = {}, action ) {
),
getValues: action.getValues,
setValues: action.setValues,
canUserEditValue: action.canUserEditValue,
// Only set `canUserEditValue` if `setValues` is also defined.
canUserEditValue:
action.setValues && action.canUserEditValue,
getFieldsList: action.getFieldsList,
},
};
Expand Down

0 comments on commit ad24f57

Please sign in to comment.