Skip to content

Commit

Permalink
Fixing changes in dropdown for Variables and Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
CarliPinell committed Nov 11, 2024
1 parent 58fae4e commit 6e31fc5
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/components/renderer/form-record-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,20 +431,22 @@ export default {
}
// Adds radio buttons or checkbox to the table depending selected option
if (['single-field', 'single-record'].includes(this.source?.dataSelectionOptions)) {
fields.unshift({
key: 'radio',
label: '',
sortable: false,
});
}
if (this.source?.dataSelectionOptions === 'multiple-records') {
fields.unshift({
key: 'checkbox',
label: '',
sortable: false
});
if(this.source?.sourceOptions === "Collection") {
if (['single-field', 'single-record'].includes(this.source?.dataSelectionOptions)) {
fields.unshift({
key: 'radio',
label: '',
sortable: false,
});
}
if (this.source?.dataSelectionOptions === 'multiple-records') {
fields.unshift({
key: 'checkbox',
label: '',
sortable: false
});
}
}
return fields;
Expand Down

0 comments on commit 6e31fc5

Please sign in to comment.