Skip to content

Commit

Permalink
WEB: bug fix when deleting a Spot from a Spot page
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicagood committed Jul 3, 2018
1 parent 787cc1b commit dca356a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/app/spot/spot/spot.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
vm.initializing = true;
if (!IS_WEB) goBack();
else {
if ($state.current.name === 'app.spotTab.spot') { // Update Spots list
if ($state.current.name.split('.')[1] === 'spotTab') { // Update Spots list
vmParent.updateSpots();
vmParent.spotIdSelected = undefined;
$location.path('app/spotTab');
Expand Down

0 comments on commit dca356a

Please sign in to comment.