MCPcopy
hub / github.com/FlowiseAI/Flowise / formatDataGridRows

Function formatDataGridRows

packages/ui/src/utils/genericHelper.js:869–881  ·  view source on GitHub ↗
(rows)

Source from the content-addressed store, hash-verified

867}
868
869export const formatDataGridRows = (rows) => {
870 try {
871 const parsedRows = typeof rows === 'string' ? JSON.parse(rows) : rows
872 return parsedRows.map((sch, index) => {
873 return {
874 ...sch,
875 id: index
876 }
877 })
878 } catch (e) {
879 return []
880 }
881}
882
883export const setLocalStorageChatflow = (chatflowid, chatId, saveObj = {}) => {
884 const chatDetails = localStorage.getItem(`${chatflowid}_INTERNAL`)

Callers 2

ToolDialogFunction · 0.90
DataGridFunction · 0.90

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected