Skip to content

Commit 037c2ae

Browse files
committed
Fix all tsc
1 parent f859907 commit 037c2ae

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

ui/panels/ProgramPanel.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,12 @@ export function builtinCompletions(
656656
...(language === 'sql'
657657
? []
658658
: [
659-
{
660-
value: 'DM_setPanel(result)',
661-
meta: 'Set results of this DataStation panel',
662-
score: 1000,
663-
},
664-
]),
659+
{
660+
value: 'DM_setPanel(result)',
661+
meta: 'Set results of this DataStation panel',
662+
score: 1000,
663+
},
664+
]),
665665
];
666666
}
667667

@@ -683,11 +683,11 @@ export function panelNameCompletions(
683683
) {
684684
return panels.map(
685685
(panel) =>
686-
({
687-
value: panel.name,
688-
meta: 'Panel',
689-
score: 1000,
690-
} as Ace.Completion)
686+
({
687+
value: panel.name,
688+
meta: 'Panel',
689+
score: 1000,
690+
} as Ace.Completion)
691691
);
692692
}
693693

@@ -770,7 +770,8 @@ export function makeAutocomplete(
770770
]
771771
.flat()
772772
.filter(
773-
(c) => c && c.value.toLowerCase().startsWith(prefix.toLowerCase())
773+
// TODO: Make sure autocomplete is still working.
774+
(c) => c && (c as any).value && (c as any).value.toLowerCase().startsWith(prefix.toLowerCase())
774775
);
775776
};
776777
}

0 commit comments

Comments
 (0)