Home / Function/ tryFormatInitialValue() — supabase Function Reference

tryFormatInitialValue() — supabase Function Reference

Architecture documentation for the tryFormatInitialValue() function in MessageDetailsPanel.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  7812aa58_11b5_59ef_32fb_8c15c4e7493f["tryFormatInitialValue()"]
  e2f866f4_1f76_eb61_2ab2_5a8462cba06f["MessageDetailsPanel()"]
  e2f866f4_1f76_eb61_2ab2_5a8462cba06f -->|calls| 7812aa58_11b5_59ef_32fb_8c15c4e7493f
  style 7812aa58_11b5_59ef_32fb_8c15c4e7493f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Integrations/Queues/SingleQueue/MessageDetailsPanel.tsx lines 33–44

const tryFormatInitialValue = (value: string) => {
  try {
    const jsonValue = JSON.parse(value)
    return JSON.stringify(jsonValue)
  } catch (err) {
    if (typeof value === 'string') {
      return value.replaceAll(`\"`, `"`)
    } else {
      return JSON.stringify(value)
    }
  }
}

Subdomains

Frequently Asked Questions

What does tryFormatInitialValue() do?
tryFormatInitialValue() is a function in the supabase codebase.
What calls tryFormatInitialValue()?
tryFormatInitialValue() is called by 1 function(s): MessageDetailsPanel.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free