Fix bad typings detected by linting

Fix badly typed expressions that were detected by turning on
`@typescript-eslint/no-unnecessary-condition` in eslint.
This commit is contained in:
Hornwitser committed 2023-12-02 01:47:02 +01:00
1 parent 90a88f7e01
commit ec734c92bc
29 files changed
+62 -73

No files matched your search

@@ -74,7 +74,7 @@ export default function AssignInstanceModal(props: AssignInstanceModalProps) {
the instance. Note that reassigning an instance from
one host to another will not move the server save over.
</Paragraph>
<Form form={form} initialValues={{ host: props.hostId === null ? "null" : props.hostId }}>
<Form form={form} initialValues={{ host: props.hostId ?? "null" }}>
<Form.Item name="host" label="Host">
<Select>
<Select.Option value={"null"}>