(chatflowid)
| 900 | } |
| 901 | |
| 902 | export const getLocalStorageChatflow = (chatflowid) => { |
| 903 | const chatDetails = localStorage.getItem(`${chatflowid}_INTERNAL`) |
| 904 | if (!chatDetails) return {} |
| 905 | try { |
| 906 | return JSON.parse(chatDetails) |
| 907 | } catch (e) { |
| 908 | return {} |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | export const removeLocalStorageChatHistory = (chatflowid) => { |
| 913 | const chatDetails = localStorage.getItem(`${chatflowid}_INTERNAL`) |
no test coverage detected