fix: missing null check
This commit is contained in:
parent
458f925d6d
commit
e309fe3bd7
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
||||||
|
|
||||||
List<Device> get notThisDevice => List<Device>.from(devices)
|
List<Device> get notThisDevice => List<Device>.from(devices)
|
||||||
..removeWhere(_isOwnDevice)
|
..removeWhere(_isOwnDevice)
|
||||||
..sort((a, b) => b.lastSeenTs.compareTo(a.lastSeenTs));
|
..sort((a, b) => (b.lastSeenTs ?? 0).compareTo(a.lastSeenTs ?? 0));
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => DevicesSettingsView(this);
|
Widget build(BuildContext context) => DevicesSettingsView(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue