Skip to content

Commit 56b2dfb

Browse files
committed
address bugbot
1 parent 59316fb commit 56b2dfb

File tree

2 files changed

+6
-2
lines changed
  • apps/sim/app
    • api/webhooks/[id]
    • workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input

2 files changed

+6
-2
lines changed

apps/sim/app/api/webhooks/[id]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export async function PATCH(request: NextRequest, { params }: { params: Promise<
242242
historyId: existingConfig.historyId,
243243
lastCheckedTimestamp: existingConfig.lastCheckedTimestamp,
244244
setupCompleted: existingConfig.setupCompleted,
245+
externalId: existingConfig.externalId,
245246
}
246247
for (const [key, value] of Object.entries(nextProviderConfig)) {
247248
if (!(key in originalProviderConfig)) {

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ReactElement } from 'react'
2-
import { useEffect, useRef, useState } from 'react'
2+
import { useEffect, useMemo, useRef, useState } from 'react'
33
import { createLogger } from '@sim/logger'
44
import { ChevronDown, ChevronsUpDown, ChevronUp, Plus } from 'lucide-react'
55
import { useParams } from 'next/navigation'
@@ -125,7 +125,10 @@ export function ConditionInput({
125125
const emitTagSelection = useTagSelection(blockId, subBlockId)
126126
const accessiblePrefixes = useAccessibleReferencePrefixes(blockId)
127127
const availableEnvVars = useAvailableEnvVarKeys(workspaceId)
128-
const shouldHighlightEnvVar = createShouldHighlightEnvVar(availableEnvVars)
128+
const shouldHighlightEnvVar = useMemo(
129+
() => createShouldHighlightEnvVar(availableEnvVars),
130+
[availableEnvVars]
131+
)
129132

130133
const containerRef = useRef<HTMLDivElement>(null)
131134
const inputRefs = useRef<Map<string, HTMLTextAreaElement>>(new Map())

0 commit comments

Comments
 (0)