mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-25 02:33:00 +08:00
Chore/cleanup warnings (#17974)
This commit is contained in:
@@ -123,7 +123,7 @@ const BeforeRunForm: FC<BeforeRunFormProps> = ({
|
||||
const value = formatValue(form.values[input.variable], input.type)
|
||||
submitData[input.variable] = value
|
||||
}
|
||||
catch (e) {
|
||||
catch {
|
||||
parseErrorJsonField = input.variable
|
||||
}
|
||||
})
|
||||
|
||||
@@ -119,7 +119,7 @@ const CodeEditor: FC<Props> = ({
|
||||
try {
|
||||
return JSON.stringify(value as object, null, 2)
|
||||
}
|
||||
catch (e) {
|
||||
catch {
|
||||
return value as string
|
||||
}
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user