We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040a91a commit fd1c7f3Copy full SHA for fd1c7f3
2 files changed
extensions/ql-vscode/src/view/common/Dropdown.tsx
@@ -20,7 +20,7 @@ type Props = {
20
options: Array<{ value: string; label: string }>;
21
disabled?: boolean;
22
disabledPlaceholder?: string;
23
- onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
+ onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;
24
};
25
26
/**
extensions/ql-vscode/src/view/model-editor/InProgressDropdown.tsx
@@ -2,17 +2,12 @@ import * as React from "react";
2
import { Dropdown } from "../common/Dropdown";
3
4
export const InProgressDropdown = () => {
5
- const noop = () => {
6
- // Do nothing
7
- };
8
-
9
return (
10
<Dropdown
11
value="Thinking..."
12
options={[]}
13
disabled={true}
14
disabledPlaceholder="Thinking..."
15
- onChange={noop}
16
/>
17
);
18
0 commit comments