Adjustments to accomodate the updates scanner type
This commit is contained in:
parent
dc38ad03a0
commit
cbdf7c8bd1
|
@ -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 New Issue