fix(ui): Prevent service moving if volume is null for some reason

pull/245/head
NaiJi ✨ 2023-07-25 18:56:47 -03:00
parent b04dcef603
commit 4dae3404fa
1 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,9 @@ class _ServicePageState extends State<ServicePage> {
),
style: Theme.of(context).textTheme.bodyMedium,
),
enabled: !serviceDisabled && !serviceLocked,
enabled: !serviceDisabled &&
!serviceLocked &&
service.storageUsage.volume != null,
),
if (service.canBeBackedUp)
ListTile(