Bug fix for list view filtering (#762)

This commit is contained in:
Oliver 2026-02-02 22:46:48 +11:00 committed by GitHub
parent ae457e8235
commit e38c51e947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 2 deletions

View file

@ -61,6 +61,14 @@ abstract class PaginatedSearchState<T extends PaginatedSearchWidget>
backup,
);
if (result == "null") {
if (tristate) {
return null;
} else {
return backup;
}
}
return result;
}
@ -69,7 +77,7 @@ abstract class PaginatedSearchState<T extends PaginatedSearchWidget>
final String settings_key = "${prefix}filter_${key}";
if (value == null) {
await InvenTreeSettingsManager().removeValue(settings_key);
await InvenTreeSettingsManager().setValue(settings_key, "null");
} else {
await InvenTreeSettingsManager().setValue(settings_key, value);
}