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

fix: Ontologies displayed twice (DEV-1325) #832

Merged
merged 2 commits into from Sep 23, 2022

Conversation

EricSommerhalder
Copy link
Contributor

resolves DEV-1325

@@ -382,7 +383,26 @@ export class OntologyComponent implements OnInit {
(ontologies: ReadOntology[]) => {
// update current list of project ontologies
ontologies[ontologies.findIndex(onto => onto.id === ontology.id)] = ontology;
this._cache.set('currentProjectOntologies', ontologies);
// avoid duplicates
const temp: ReadOntology[] = [];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rename these temp variables to something a bit more meaningful

@@ -1,3 +1,4 @@
import { O } from '@angular/cdk/keycodes';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-import FTW?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got to love it

@mdelez mdelez self-requested a review September 23, 2022 07:12
Copy link
Collaborator

@mdelez mdelez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well, thanks :)

@mdelez mdelez merged commit ba35d6f into main Sep 23, 2022
@mdelez mdelez deleted the wip/dev-1325-ontologies-displayed-twice branch September 23, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants