OperationQueueSidePanel.utils.ts10 lines · main
1/**
2 * Formats a value for display in the operation queue.
3 * Handles null, undefined, objects, and primitive values.
4 */
5export const formatOperationItemValue = (value: unknown): string => {
6 if (value === null) return 'NULL'
7 if (value === undefined) return 'UNDEFINED'
8 if (typeof value === 'object') return JSON.stringify(value)
9 return String(value)
10}