Skip to content

Commit

Permalink
minor bug fix (finos#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersaini authored Sep 9, 2024
1 parent 03821db commit fbf3e52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/diagram/DiagramEditorCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const DiagramEditorCanvas = observer(
event.preventDefault();
});

const drop = (event: DragEvent) => {
const drop = (event: DragEvent): void => {
event.preventDefault();
const droppedEntityIds: string[] = (
JSON.parse(
Expand Down Expand Up @@ -119,7 +119,7 @@ export const DiagramEditorCanvas = observer(
});
};

const handleKeyDown = (event: KeyboardEvent) => {
const handleKeyDown = (event: KeyboardEvent): void => {
if ((event.ctrlKey || event.metaKey) && event.key === 's') {
event.preventDefault();

Expand Down
1 change: 1 addition & 0 deletions src/components/diagram/DiagramEditorHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { observer } from 'mobx-react-lite';
import { flowResult } from 'mobx';
import { WRITE_ENTITY } from '../../utils/Const';
import type { DiagramEditorState } from '../../stores/DiagramEditorState';
import { postMessage } from '../../utils/VsCodeUtils';
import type { PlainObject } from '../../utils/SerializationUtils';

export const DiagramEditorHeader = observer(
Expand Down

0 comments on commit fbf3e52

Please sign in to comment.