fix(ags): make sure we don't pass a non-string to fzf
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-01 15:24:52 -04:00
parent 9a9cfc13f6
commit 06e12f7bb1

View file

@ -169,7 +169,7 @@ export class SortedList<
this._entry = makeChildResult.entry;
this._entry.on_change = ({ text }) => {
if (text !== null) {
if (text !== null || typeof text === 'string') {
this._set_sort(text, this._list, this._placeholder);
(this._list.get_children() as ListBoxRow[]).forEach((r) => {
r.changed();