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