Skip to content

Commit

Permalink
fix(view): handle selection-check magic values (#559)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <[email protected]>
  • Loading branch information
Florian authored Sep 14, 2023
1 parent ac5b9c0 commit 3f79a4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
}
},
magicFields() {
if (this.selectedColumn && this.selectedColumn.type.substr(0, 9) !== 'selection') {
if (this.selectedColumn && (this.selectedColumn.type.substr(0, 9) !== 'selection' || this.selectedColumn?.type === 'selection-check')) {
const fields = []
this.selectedColumn.getPossibleMagicFields().forEach(field => {
if (field.id.substr(0, 1) !== '@') {
Expand All @@ -144,7 +144,7 @@ export default {
}
} else if (this.selectedColumn && this.selectedColumn.type.substr(0, 9) === 'selection') {
const options = []
this.selectedColumn.selectionOptions.forEach(item => {
this.selectedColumn.selectionOptions?.forEach(item => {
options.push({
id: '@selection-id-' + item.id,
label: item.label,
Expand Down

0 comments on commit 3f79a4e

Please sign in to comment.