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:
@@ -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 });
|
||||
}
|
||||
|
Reference in New Issue
Block a user