Преглед изворни кода

chore: MAX_TREE_DEPTH spelling mistake (#6965)

tags/0.6.16
quicksand пре 1 година
родитељ
комит
e4587b2151
No account linked to committer's email address

+ 1
- 1
web/app/components/workflow/constants.ts Прегледај датотеку

export const X_OFFSET = 60 export const X_OFFSET = 60
export const NODE_WIDTH_X_OFFSET = NODE_WIDTH + X_OFFSET export const NODE_WIDTH_X_OFFSET = NODE_WIDTH + X_OFFSET
export const Y_OFFSET = 39 export const Y_OFFSET = 39
export const MAX_TREE_DEEPTH = 50
export const MAX_TREE_DEPTH = 50
export const START_INITIAL_POSITION = { x: 80, y: 282 } export const START_INITIAL_POSITION = { x: 80, y: 282 }
export const AUTO_LAYOUT_OFFSET = { export const AUTO_LAYOUT_OFFSET = {
x: -42, x: -42,

+ 3
- 3
web/app/components/workflow/hooks/use-checklist.ts Прегледај датотеку

} from '../utils' } from '../utils'
import { import {
CUSTOM_NODE, CUSTOM_NODE,
MAX_TREE_DEEPTH,
MAX_TREE_DEPTH,
} from '../constants' } from '../constants'
import type { ToolNodeType } from '../nodes/tool/types' import type { ToolNodeType } from '../nodes/tool/types'
import { useIsChatMode } from './use-workflow' import { useIsChatMode } from './use-workflow'
maxDepth, maxDepth,
} = getValidTreeNodes(nodes.filter(node => node.type === CUSTOM_NODE), edges) } = getValidTreeNodes(nodes.filter(node => node.type === CUSTOM_NODE), edges)


if (maxDepth > MAX_TREE_DEEPTH) {
notify({ type: 'error', message: t('workflow.common.maxTreeDepth', { depth: MAX_TREE_DEEPTH }) })
if (maxDepth > MAX_TREE_DEPTH) {
notify({ type: 'error', message: t('workflow.common.maxTreeDepth', { depth: MAX_TREE_DEPTH }) })
return false return false
} }



Loading…
Откажи
Сачувај