Skip to content

Commit

Permalink
🐛 [open-formulieren/open-forms#3922] Disallow null values for prefill…
Browse files Browse the repository at this point in the history
… plugin or attribute

null values are okay-ish in the Javascript code, but cause constraint
errors when the component is used to populate a FormVariable in the
backend which does not allow NULL values.
  • Loading branch information
sergei-maertens committed Feb 28, 2024
1 parent 257bcbf commit 42dffb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formio/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export interface DisplayConfig {
*/
export interface PrefillConfig {
prefill?: {
plugin: string | null;
attribute: string | null;
plugin: string; // when no prefill is applicable, the value must be empty string
attribute: string; // when no prefill is applicable, the value must be empty string
identifierRole: 'main' | 'authorised_person';
};
}
Expand Down

0 comments on commit 42dffb6

Please sign in to comment.