(rows)
| 867 | } |
| 868 | |
| 869 | export 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 | |
| 883 | export const setLocalStorageChatflow = (chatflowid, chatId, saveObj = {}) => { |
| 884 | const chatDetails = localStorage.getItem(`${chatflowid}_INTERNAL`) |
no test coverage detected