MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / startEdit

Function startEdit

apps/web/src/app/admin/components/ModelStatsTable.tsx:105–112  ·  view source on GitHub ↗
(
    modelId: string,
    aaSlug: string | null,
    field: 'aaSlug' | 'isActive' | 'isFeatured' | 'isStealth'
  )

Source from the content-addressed store, hash-verified

103 );
104
105 const startEdit = (
106 modelId: string,
107 aaSlug: string | null,
108 field: 'aaSlug' | 'isActive' | 'isFeatured' | 'isStealth'
109 ) => {
110 setEditingField({ id: modelId, field });
111 setEditValue(field === 'aaSlug' ? aaSlug || '' : '');
112 };
113
114 const cancelEdit = () => {
115 setEditingField(null);

Callers 1

ModelStatsTableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected