1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

fix: view filter displaying incorrect options

This commit is contained in:
Michael Shanks 2020-10-12 15:32:49 +01:00
parent 651128ea81
commit f03e314710

View file

@ -79,7 +79,7 @@
}
function fieldOptions(field) {
return viewModel.schema[field].type === "string"
return viewModel.schema[field].type === "options"
? viewModel.schema[field].constraints.inclusion
: [true, false]
}