JCKalt / General-Work

Modeling database
0 stars 0 forks source link

pgui trim undefined function error #162

Closed JCKalt closed 5 months ago

JCKalt commented 5 months ago

Got this after editing Employee Dean and clicking on Phone field

Unhandled Runtime Error

TypeError: fields[index].trim is not a function Source

src/components/EditDialog.js (98:41) @ trim

96 | if (primaryKeys.includes(columnName)) { 97 | // Trim the value before saving

98 | const trimmedValue = fields[index].trim(); | ^ 99 | // Update the state and UI with the trimmed value 100 | onUpdate(index, trimmedValue); 101 | }

Call Stack actualIndex src/components/EditDialog.js (304:60)