Skip to content

Commit

Permalink
fix property inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
fcannizzaro committed Jan 5, 2024
1 parent 122f129 commit 501aba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion property-inspector/src/StreamDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const StreamDeck: FC<StreamDeckProps> = ({
const setPartialSettings = useCallback(
(update: Partial<Settings>, options?: { replace?: boolean }) => {
const payload = options?.replace
? updateS
? update
: {
...settings,
...update,
Expand Down
3 changes: 2 additions & 1 deletion property-inspector/src/hooks/useDroppable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ export const useDroppable = (
}
onSelect(data);
} catch (e) {
console.log(e);
notifications.show({
color: "red",
title: "Error",
message: "Failed to parse dropped data",
});
}
},
[type]
[type, onSelect]
);

const onDragOver = useCallback((e: React.DragEvent<HTMLDivElement>) => {
Expand Down

0 comments on commit 501aba2

Please sign in to comment.