Accept any json value in result and error (#14954)

Some users might throw JS values that aren't strings.

<img width="3456" height="2160" alt="CleanShot 2025-10-07 at 17 48
36@2x"
src="https://github.com/user-attachments/assets/b02f886c-1c8e-4186-954b-6d0e025a6fcf"
/>

Errors seen previously:

<img width="1308" height="840" alt="image"
src="https://github.com/user-attachments/assets/1d7e4947-8f6f-44fb-aefb-c7d105712204"
/>
This commit is contained in:
Baptiste Devessier
2025-10-07 18:25:51 +02:00
committed by GitHub
parent f037e92dfa
commit e382730a39
2 changed files with 2 additions and 2 deletions
@@ -74,7 +74,7 @@ export const WorkflowRunStepOutputDetail = ({ stepId }: { stepId: string }) => {
: i18n._(getActionHeaderTypeOrThrow(stepDefinition.definition.type));
const setRedHighlightingForEveryNode: GetJsonNodeHighlighting = (keyPath) => {
if (keyPath === 'error') {
if (keyPath.startsWith('error')) {
return 'red';
}