Skip to content

Commit

Permalink
Merge pull request #4328 from traPtitech/fix/modal-initial-state
Browse files Browse the repository at this point in the history
リロードを挟むとモーダルが二重に開かれる問題を修正
  • Loading branch information
cp-20 authored Jul 7, 2024
2 parents a75c655 + 4be9022 commit 2066ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/composables/useRouteWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const useRouteWatcher = () => {
!!history.state?.modalState[0]?.relatedRoute
isOnInitialModalRoute.value = isOnInitialModalRouteValue

if (state.isInitialView && !isOnInitialModalRoute) {
if (state.isInitialView && !isOnInitialModalRouteValue) {
// 初回表示かつモーダルを表示する必要がない状態なので、stateをクリア
clearModalState()
}
Expand Down

0 comments on commit 2066ac6

Please sign in to comment.