1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

fix: view filter displaying incorrect options

This commit is contained in:
Michael Shanks 2020-10-12 15:32:49 +01:00
parent d24b13f364
commit 4a32c7981a

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