MCPcopy Index your code
hub / github.com/simstudioai/sim / parseWatchColumns

Function parseWatchColumns

apps/sim/lib/table/trigger.ts:165–172  ·  view source on GitHub ↗
(watchColumns: string | string[] | undefined)

Source from the content-addressed store, hash-verified

163}
164
165function parseWatchColumns(watchColumns: string | string[] | undefined): string[] {
166 if (!watchColumns) return []
167 if (Array.isArray(watchColumns)) return watchColumns.filter(Boolean)
168 return watchColumns
169 .split(',')
170 .map((c) => c.trim())
171 .filter(Boolean)
172}
173
174function detectChangedColumns(oldData: RowData, newData: RowData): string[] {
175 const changed: string[] = []

Callers 1

fireTableTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected