Skip to content

Commit

Permalink
Fix loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 13, 2021
1 parent 5c11c1d commit beb7000
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ function RefNameAutocomplete({
const [searchOptions, setSearchOptions] = useState<Option[]>([])
const { assemblyManager } = session
const { coarseVisibleLocStrings } = model
const assembly = assemblyName && assemblyManager.get(assemblyName)
const regions: Region[] = useMemo(() => {
return (assembly && assembly.regions) || []
}, [assembly])
const assembly = assemblyName ? assemblyManager.get(assemblyName) : undefined

// eslint-disable-next-line react-hooks/exhaustive-deps
const regions: Region[] = assembly?.regions || []
// default options for dropdown
const limitOption: Array<Option> = [
{
Expand Down

0 comments on commit beb7000

Please sign in to comment.