@jbrowse/plugin-circular-view 1.6.3 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-circular-view",
3
- "version": "1.6.3",
3
+ "version": "1.6.6",
4
4
  "description": "JBrowse 2 circular view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "c6d6783d3dc82ea96390ab177ceb8ed38b439333"
52
+ "gitHead": "9fcca7793af0df2d6e527ddaace2b368c8ed2879"
53
53
  }
@@ -198,21 +198,9 @@ export default function CircularView(pluginManager: PluginManager) {
198
198
  },
199
199
  get initialized() {
200
200
  const { assemblyManager } = getSession(self)
201
-
202
- // if the assemblyManager is tracking a given assembly name, wait for
203
- // it to be loaded. this is done by looking in the assemblyManager's
204
- // assembly list, and then waiting on it's initialized state which is
205
- // updated later
206
- return this.assemblyNames.every(assemblyName => {
207
- if (
208
- assemblyManager.assemblyList
209
- ?.map(asm => asm.name)
210
- .includes(assemblyName)
211
- ) {
212
- return assemblyManager.get(assemblyName)?.initialized
213
- }
214
- return true
215
- })
201
+ return this.assemblyNames.every(
202
+ a => assemblyManager.get(a)?.initialized,
203
+ )
216
204
  },
217
205
  }))
218
206
  .volatile(() => ({