Skip to content

Commit

Permalink
Fix changing to a profile with less views
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Oct 18, 2023
1 parent c38bfe0 commit e1e6422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stores/widgetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const useWidgetManagerStore = defineStore('widget-manager', () => {
return
}

currentViewIndex.value = 0
const profileIndex = savedProfiles.value.findIndex((p) => p.hash === newValue.hash)
savedProfiles.value[profileIndex] = newValue
},
Expand Down Expand Up @@ -117,6 +118,7 @@ export const useWidgetManagerStore = defineStore('widget-manager', () => {
return
}
currentProfileIndex.value = profileIndex
currentViewIndex.value = 0
}

/**
Expand Down

0 comments on commit e1e6422

Please sign in to comment.