From 51dc8a27d3d68fbc6af8f7a67ef764f39db1387a Mon Sep 17 00:00:00 2001 From: neongrau Date: Fri, 8 Mar 2024 10:32:37 +0100 Subject: [PATCH] fix? form fields not rendered somehow the Generators returned were almost never producing html, except of a rare chance of <1% this seems to render the form 100% of every time --- src/components/request-form-table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/request-form-table.js b/src/components/request-form-table.js index 57964bbc..17151f59 100644 --- a/src/components/request-form-table.js +++ b/src/components/request-form-table.js @@ -72,7 +72,9 @@ function generateFormRows(data, options, dataType = 'object', key = '', descript // For Primitive Data types const parsedData = JSON.parse(data); - return generatePrimitiveRow.call(this, parsedData, { key, keyLabel, keyDescr, description, dataType, isRequired, options }); + return Array.from( + generatePrimitiveRow.call(this, parsedData, { key, keyLabel, keyDescr, description, dataType, isRequired, options }) + ); } function generatePrimitiveRow(rowData, parentRecursionOptions) {