|
const fields = window.coreBOS.Describe[resource]?.fields??[]; |
|
const keyField = fields.filter((field) => field.name === key)[0]??{}; |
|
const refTo = (keyField && keyField.type && keyField.type.refersTo) ? keyField.type.refersTo[0] : ''; |
|
const fieldName = (keyField && keyField.uitype === "10") ? `${key} : (${refTo}) id` : key; |
|
const valueID = value?.split('x')[1]??value; |
Can be solved with https://devinschulz.com/modify-create-react-apps-babel-configuration-without-ejecting/, or by taking out the operator in this file until it is supported.
coreBOSwsLibrary/javascript/reactadmin/corebosServerProvider.js
Lines 49 to 53 in 36fa447
Can be solved with https://devinschulz.com/modify-create-react-apps-babel-configuration-without-ejecting/, or by taking out the operator in this file until it is supported.