From 6e31fc53cce69bda69dd451055715954f29655c8 Mon Sep 17 00:00:00 2001 From: CarliPinell Date: Mon, 11 Nov 2024 17:51:42 -0400 Subject: [PATCH] Fixing changes in dropdown for Variables and Collection --- src/components/renderer/form-record-list.vue | 30 +++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/renderer/form-record-list.vue b/src/components/renderer/form-record-list.vue index 242c52b45..83ac01e43 100644 --- a/src/components/renderer/form-record-list.vue +++ b/src/components/renderer/form-record-list.vue @@ -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;