mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-20 05:04:27 +08:00
feat(web/checklist): Updates write mode validation in assigner node
Includes 'removeFirst' and 'removeLast' operations in the set of conditions that bypass further validation checks. Enhances logic to prevent unnecessary validation for specific write operations. Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
5d13850758
commit
62c412f26d
@ -29,7 +29,7 @@ const nodeDefault: NodeDefault<AssignerNodeType> = {
|
||||
if (!errorMessages && !value.variable_selector?.length)
|
||||
errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.assigner.assignedVariable') })
|
||||
|
||||
if (!errorMessages && value.operation !== WriteMode.clear) {
|
||||
if (!errorMessages && value.operation !== WriteMode.clear && value.operation !== WriteMode.removeFirst && value.operation !== WriteMode.removeLast) {
|
||||
if (value.operation === WriteMode.set || value.operation === WriteMode.increment
|
||||
|| value.operation === WriteMode.decrement || value.operation === WriteMode.multiply
|
||||
|| value.operation === WriteMode.divide) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user