From 06e12f7bb1d20d0c7c88b75d172bf317cb4d60b5 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 1 May 2024 15:24:52 -0400 Subject: [PATCH] fix(ags): make sure we don't pass a non-string to fzf --- modules/ags/config/ts/misc/sorted-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ags/config/ts/misc/sorted-list.ts b/modules/ags/config/ts/misc/sorted-list.ts index 7826258..e6a2d48 100644 --- a/modules/ags/config/ts/misc/sorted-list.ts +++ b/modules/ags/config/ts/misc/sorted-list.ts @@ -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();