improve schema form to handle empty schemas

This commit is contained in:
Ruben Fiszel
2024-01-11 11:37:12 +01:00
parent 746a05f822
commit 2a97cc7462
@@ -91,7 +91,7 @@
loadResourceTypes()
function reorder() {
if (schema.order && Array.isArray(schema.order)) {
if (schema?.order && Array.isArray(schema.order)) {
const n = {}
;(schema.order as string[]).forEach((x) => {