Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only poll api/jobs from meshes tab while logged in #5647

Merged
merged 1 commit into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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