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

Function errorFailed

packages/ui/src/views/agentflowsv2/Canvas.jsx:503–517  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

501 }
502
503 const errorFailed = (message) => {
504 enqueueSnackbar({
505 message,
506 options: {
507 key: new Date().getTime() + Math.random(),
508 variant: 'error',
509 persist: true,
510 action: (key) => (
511 <Button style={{ color: 'white' }} onClick={() => closeSnackbar(key)}>
512 <IconX />
513 </Button>
514 )
515 }
516 })
517 }
518
519 const setDirty = () => {
520 dispatch({ type: SET_DIRTY })

Callers 1

AgentflowCanvasFunction · 0.70

Calls 3

enqueueSnackbarFunction · 0.90
closeSnackbarFunction · 0.90
getTimeMethod · 0.45

Tested by

no test coverage detected