MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / handleProcessRowUpdate

Function handleProcessRowUpdate

packages/ui/src/ui-component/grid/DataGrid.jsx:70–83  ·  view source on GitHub ↗
(newRow)

Source from the content-addressed store, hash-verified

68 const colValues = addCols(columns)
69
70 const handleProcessRowUpdate = (newRow) => {
71 let updatedRows = []
72 setRowValues((prevRows) => {
73 let allRows = [...cloneDeep(prevRows)]
74 const indexToUpdate = allRows.findIndex((row) => row.id === newRow.id)
75 if (indexToUpdate >= 0) {
76 allRows[indexToUpdate] = { ...newRow }
77 }
78 updatedRows = allRows
79 return allRows
80 })
81 onChange(JSON.stringify(updatedRows))
82 return newRow
83 }
84
85 const getEmptyJsonObj = () => {
86 const obj = {}

Callers

nothing calls this directly

Calls 2

stringifyMethod · 0.80
onChangeFunction · 0.50

Tested by

no test coverage detected