mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
refactore: Replace hardcoded null strategy strings with constant
This commit is contained in:
6
web/app/components/workflow/nodes/_base/constants.ts
Normal file
6
web/app/components/workflow/nodes/_base/constants.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export const NULL_STRATEGY = {
|
||||
RAISE_ERROR: 'raise_error',
|
||||
USE_DEFAULT: 'use_default',
|
||||
} as const
|
||||
|
||||
export type NullStrategy = typeof NULL_STRATEGY[keyof typeof NULL_STRATEGY]
|
||||
Reference in New Issue
Block a user