Skip to content

Commit

Permalink
fix: pubtator store loading with missing hgnc id (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Aug 8, 2024
1 parent 0c2770f commit e4a7c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/pubtator/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const usePubtatorStore = defineStore('pubtator', () => {
*/
const initialize = async (hgncSymbol$?: string, force: boolean = false) => {
// Skip if already loaded
if (!force && hgncSymbol$ === hgncSymbol.value) {
if (!force && hgncSymbol$ && hgncSymbol$ === hgncSymbol.value) {
return
}

Expand Down

0 comments on commit e4a7c17

Please sign in to comment.