Skip to content

Commit 07ea941

Browse files
committed
fix(frontend): guard against JSON.stringify returning undefined in result panel row mapping
1 parent f4eafcb commit 07ea941

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app/workspace/component/result-panel/result-panel-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class RowModalComponent implements OnChanges {
112112
rowData: Record<string, unknown>
113113
): { key: string; value: string; mediaSrc: string; isVideo: boolean; isImage: boolean; isAudio: boolean }[] {
114114
return Object.entries(rowData).map(([key, val]) => {
115-
const value = typeof val === "string" ? val : JSON.stringify(val);
115+
const value = typeof val === "string" ? val : (JSON.stringify(val) ?? String(val));
116116
return {
117117
key,
118118
value,

0 commit comments

Comments
 (0)