Skip to content

Commit 04ca966

Browse files
committed
chore(integrations): drop local-variable comments in skills section
Keep to the repo's TSDoc-on-declarations convention — the in-flight guard and skillsReady derivation are self-evident from naming.
1 parent e448e63 commit 04ca966

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

apps/sim/app/workspace/[workspaceId]/integrations/[block]/integration-skills-section.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ export function IntegrationSkillsSection({
5858
const posthog = usePostHog()
5959
const { data: existingSkills = [], isPending, isPlaceholderData } = useSkills(workspaceId)
6060
const createSkill = useCreateSkill()
61-
/** List is authoritative for this workspace only once loaded and not `keepPreviousData` placeholder from a prior one. */
6261
const skillsReady = !isPending && !isPlaceholderData
6362
const [pendingNames, setPendingNames] = useState<ReadonlySet<string>>(new Set())
64-
/** Synchronous in-flight guard — `pendingNames` state updates async, so two rapid clicks could both pass the `disabled` check before a re-render. */
6563
const inFlightRef = useRef<Set<string>>(new Set())
6664

6765
const existingNames = useMemo(() => new Set(existingSkills.map((s) => s.name)), [existingSkills])

0 commit comments

Comments
 (0)