OperationQueueSidePanel.utils.ts 361 B

12345678910
  1. /**
  2. * Formats a value for display in the operation queue.
  3. * Handles null, undefined, objects, and primitive values.
  4. */
  5. export 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. }