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

Function shouldClearBaseOutputs

apps/sim/lib/workflows/blocks/block-outputs.ts:215–228  ·  view source on GitHub ↗
(
  blockType: string,
  normalizedInputFormat: InputFormatField[]
)

Source from the content-addressed store, hash-verified

213}
214
215function shouldClearBaseOutputs(
216 blockType: string,
217 normalizedInputFormat: InputFormatField[]
218): boolean {
219 if (blockType === TRIGGER_TYPES.API || blockType === TRIGGER_TYPES.INPUT) {
220 return true
221 }
222
223 if (blockType === TRIGGER_TYPES.GENERIC_WEBHOOK && normalizedInputFormat.length > 0) {
224 return true
225 }
226
227 return false
228}
229
230function applyInputFormatToOutputs(
231 blockType: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected