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 | }
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
Call Stack actualIndex src/components/EditDialog.js (304:60)