Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this._store = new WorkspaceStore([]);
this._store.stateView
.firstBy$((record: EntityRecord) => record.state.active === true)
.subscribe((record: EntityRecord) => {
const workspace = record ? record.entity : undefined;
this.workspace$.next(workspace);
});
}