mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Prevent TypeError caused by hint -#
This commit is contained in:
parent
f694f6a669
commit
bcccb5794c
1 changed files with 3 additions and 2 deletions
|
@ -1149,11 +1149,12 @@ export function pipe_elements(
|
|||
function toHintablesArray(
|
||||
hintablesOrElements: Element[] | Hintables[],
|
||||
): Hintables[] {
|
||||
if (!hintablesOrElements.length) return []
|
||||
return "className" in hintablesOrElements[0]
|
||||
? [{ elements: hintablesOrElements } as Hintables]
|
||||
: "elements" in hintablesOrElements[0]
|
||||
? (hintablesOrElements as Hintables[])
|
||||
: undefined
|
||||
? (hintablesOrElements as Hintables[])
|
||||
: []
|
||||
}
|
||||
|
||||
function selectFocusedHint(delay = false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue