Skip to content

Commit

Permalink
fix: event type
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed May 5, 2024
1 parent 91c30e5 commit 707beea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/workspace/blocks/Blocks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { restore, willRestore, workspace } from "$state/blockly.svelte";
import { code, robot } from "$state/workspace.svelte";
import { arduino } from "@leaphy-robotics/leaphy-blocks";
import { WorkspaceSvg, serialization } from "blockly";
import type { Abstract } from "blockly/core/events/events";
import { onMount } from "svelte";
import { locale } from "svelte-i18n";
import { get } from "svelte/store";
Expand Down Expand Up @@ -35,7 +36,7 @@ onMount(() => {
),
);
updateSizing();
$workspace.addChangeListener((event: any) => {
$workspace.addChangeListener((event: Abstract) => {
if (!(event.type === "toolbox_item_select")) {
return;
}
Expand Down

0 comments on commit 707beea

Please sign in to comment.