Skip to content

Commit d5518b2

Browse files
committed
fix(studio): destructure onAdd prop in BlockCard
1 parent 8c698d7 commit d5518b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/studio/src/components/sidebar/BlocksTab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ function BlockCard({
275275
tags,
276276
posterUrl,
277277
videoUrl,
278+
onAdd,
278279
onPreview,
279280
}: {
280281
name: string;
@@ -326,7 +327,7 @@ function BlockCard({
326327
onAdd();
327328
setTimeout(() => setAdding(false), 1000);
328329
},
329-
[adding],
330+
[onAdd, adding],
330331
);
331332

332333
const { activeCompPath, compositionDimensions } = useStudioContext();

0 commit comments

Comments
 (0)