Skip to content

Commit

Permalink
useObserve.tsの変更を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun-Murakami committed May 5, 2024
1 parent b7f1ae6 commit c65e07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useObserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const useObserve = () => {
return;
}

if (currentTree !== prevCurrentTree) {
if (!prevCurrentTree || currentTree !== prevCurrentTree) {
if (prevItems.length > 0) {
const asyncFunc = async () => {
if (prevCurrentTree) {
Expand Down

0 comments on commit c65e07c

Please sign in to comment.