Skip to content

Commit

Permalink
Only poll api/jobs from meshes tab while logged in (#5647)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Aug 2, 2021
1 parent 49ef422 commit 0b9b63b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released

### Fixed
- Fix that active segment and node id were not shown in status bar when being in a non-hybrid annotation. [#5638](https://github.com/scalableminds/webknossos/pull/5638)
- Fixed a bug where an authentication error was shown when viewing the meshes tab while not logged in. [#5647](https://github.com/scalableminds/webknossos/pull/5647)

### Removed
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const mapStateToProps = (state: OxalisState): * => ({
datasetName: state.dataset.name,
availableMeshFiles: state.availableMeshFiles,
currentMeshFile: state.currentMeshFile,
activeUser: state.activeUser,
});

const mapDispatchToProps = (dispatch: Dispatch<*>): * => ({
Expand Down Expand Up @@ -168,7 +169,8 @@ class MeshesView extends React.Component<Props, State> {
}

async pollJobData(): Promise<void> {
const jobs = await getJobs();
const jobs = this.props.activeUser != null ? await getJobs() : [];

const oldActiveJobId = this.state.activeMeshJobId;

const meshJobsForDataset = jobs.filter(
Expand Down

0 comments on commit 0b9b63b

Please sign in to comment.