Skip to content

Commit

Permalink
Fix usage of aliases for locstring search box (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 3, 2020
1 parent 1592206 commit a83ae36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/assemblyManager/assembly.ts
Expand Up @@ -192,11 +192,11 @@ export default function assemblyFactory(assemblyConfigType: IAnyType) {
return self.refNameColors[idx % self.refNameColors.length]
},
isValidRefName(refName: string) {
if (!self.allRefNames)
if (!self.refNameAliases)
throw new Error(
'isValidRefName cannot be called yet, the assembly has not finished loading',
)
return self.allRefNames.includes(refName)
return !!this.getCanonicalRefName(refName)
},
}))
.actions(self => ({
Expand Down

0 comments on commit a83ae36

Please sign in to comment.