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

Function getLocalStorageChatflow

packages/ui/src/utils/genericHelper.js:902–910  ·  view source on GitHub ↗
(chatflowid)

Source from the content-addressed store, hash-verified

900}
901
902export 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
912export const removeLocalStorageChatHistory = (chatflowid) => {
913 const chatDetails = localStorage.getItem(`${chatflowid}_INTERNAL`)

Callers 2

clearChatFunction · 0.90
ChatMessageFunction · 0.90

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected