1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

continue typescript & chakra v1 migrations [skip ci]

This commit is contained in:
checktheroads
2020-12-12 00:49:03 -07:00
parent be601e4aef
commit 53dd6fada4
19 changed files with 142 additions and 287 deletions

View File

@@ -24,7 +24,7 @@ export const QueryLocation = (props: TQuerySelectField) => {
const options = useMemo(() => buildOptions(networks), [networks.length]);
function handleChange(e: TSelectOption): void {
if (Array.isArray(e.value)) {
if (Array.isArray(e?.value) && e !== null) {
const value = e.value.map(sel => sel);
onChange({ field: 'query_location', value });
}