Skip to content

Commit

Permalink
Merge pull request #348 from MelleD/fix-init-state
Browse files Browse the repository at this point in the history
fix: init state without local storage
  • Loading branch information
MelleD authored Nov 12, 2024
2 parents b7b2055 + c88fd83 commit 77cd105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ExpanderCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
} catch (e) {
console.error(e);

Check warning on line 97 in src/ExpanderCard.svelte

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 97 in src/ExpanderCard.svelte

View workflow job for this annotation

GitHub Actions / Create tagged release

Unexpected console statement
}
}else{
// first time, set the state from config
if (config.expanded !== undefined) {
setOpenState(config.expanded);
}
}
});
Expand Down

0 comments on commit 77cd105

Please sign in to comment.