Adjustments to accomodate the updates scanner type
This commit is contained in:
parent
c5b16fe47e
commit
9d00b59c49
2 changed files with 2 additions and 3 deletions
|
@ -51,7 +51,7 @@ const componentMap = {
|
|||
"field/link": FormFieldSelect,
|
||||
"field/array": FormFieldSelect,
|
||||
"field/json": FormFieldSelect,
|
||||
"field/barcodeqr": FormFieldSelect,
|
||||
"field/barcode/qr": FormFieldSelect,
|
||||
// Some validation types are the same as others, so not all types are
|
||||
// explicitly listed here. e.g. options uses string validation
|
||||
"validation/string": ValidationEditor,
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
let entries = Object.entries(schema ?? {})
|
||||
|
||||
let types = []
|
||||
if ((type === "field/options", type === "field/barcodeqr")) {
|
||||
if ((type === "field/options", type === "field/barcode/qr")) {
|
||||
// allow options to be used on both options and string fields
|
||||
types = [type, "field/string"]
|
||||
} else {
|
||||
|
@ -35,7 +35,6 @@
|
|||
|
||||
types = types.map(type => type.split("/")[1])
|
||||
entries = entries.filter(entry => types.includes(entry[1].type))
|
||||
|
||||
return entries.map(entry => entry[0])
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue