Fix currentLocation unintentional reset
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-04 12:09:10 +02:00
parent 6b374af18c
commit db79ab01e9
2 changed files with 5 additions and 10 deletions

View File

@@ -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()
}
/* /*

View File

@@ -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()
}
/* /*