fix
This commit is contained in:
@@ -257,6 +257,7 @@ class _MapSection extends ConsumerWidget {
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
if (!await guardDeviceCommand(context, ref)) return;
|
||||
if (!context.mounted) return;
|
||||
final device = ref
|
||||
.read(legacyDeviceViewModelProvider)
|
||||
.value
|
||||
|
||||
@@ -954,6 +954,7 @@ class _LocationMapState extends ConsumerState<LocationMap>
|
||||
child: GpsControlPanel(
|
||||
onRefresh: () async {
|
||||
if (!await guardDeviceCommand(context, ref)) return;
|
||||
if (!mounted) return;
|
||||
unawaited(
|
||||
ref.read(sfTrackingProvider).legacyLocationMapRefreshTapped(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user