improve schema form to handle empty schemas

This commit is contained in:
Ruben Fiszel
2024-01-11 11:37:12 +01:00
parent 308c4ceb47
commit 6869368f1c
@@ -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) => {