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
1 changed files with 1 additions and 1 deletions

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]
}