Skip to content

Commit 88e544b

Browse files
committed
stronger typing for Skill interface
1 parent 8d75b84 commit 88e544b

File tree

1 file changed

+6
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block

1 file changed

+6
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,13 @@ const SubBlockRow = memo(function SubBlockRow({
630630
return null
631631
}
632632

633+
interface StoredSkill {
634+
skillId: string
635+
name?: string
636+
}
637+
633638
const skillNames = rawValue
634-
.map((skill: any) => {
639+
.map((skill: StoredSkill) => {
635640
if (!skill || typeof skill !== 'object') return null
636641

637642
// Priority 1: Resolve skill name from the skills query (fresh data)

0 commit comments

Comments
 (0)