MCPcopy Create free account
hub / github.com/ShipSecAI/studio / normalizeRuntimeInputs

Function normalizeRuntimeInputs

frontend/src/components/workflow/ConfigPanel.tsx:152–165  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

150};
151
152const normalizeRuntimeInputs = (value: unknown) => {
153 if (Array.isArray(value)) {
154 return value;
155 }
156 if (typeof value === 'string') {
157 try {
158 const parsed = JSON.parse(value);
159 return Array.isArray(parsed) ? parsed : [];
160 } catch {
161 return [];
162 }
163 }
164 return [];
165};
166
167interface ManualListChipsInputProps {
168 inputId: string;

Callers 1

ConfigPanelFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected