Fix currentLocation unintentional reset
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -23,12 +23,9 @@
|
|||||||
// Variables
|
// Variables
|
||||||
const { page } = stores()
|
const { page } = stores()
|
||||||
|
|
||||||
|
// Reset current location
|
||||||
// Reset current location if existing
|
currentLocation.set()
|
||||||
$: {
|
currentPhotos.set()
|
||||||
if ($currentLocation) currentLocation.set()
|
|
||||||
if ($currentPhotos) currentPhotos.set()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -58,10 +58,8 @@
|
|||||||
const { page } = stores()
|
const { page } = stores()
|
||||||
|
|
||||||
// Reset current location if existing
|
// Reset current location if existing
|
||||||
$: {
|
currentLocation.set()
|
||||||
if ($currentLocation) currentLocation.set()
|
currentPhotos.set()
|
||||||
if ($currentPhotos) currentPhotos.set()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user