Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Handle case where concept in query view is non-existent #702

Merged
merged 1 commit into from
Oct 3, 2014
Merged

Conversation

naegelyd
Copy link
Collaborator

@naegelyd naegelyd commented Oct 3, 2014

Fix #701.

Signed-off-by: Don Naegely [email protected]

var concept = c.data.concepts.get(model.get('concept'));

if (concept === undefined) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally prefer one-line returns if (concept === undefined) return;, but it's not a big deal. If you want to leave it I will merge.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have no strong opinion and I've looked around a bit and we are doing one-liners elsewhere. I will change it.

bruth added a commit that referenced this pull request Oct 3, 2014
Handle case where concept in query view is non-existent
@bruth bruth merged commit 86270e2 into master Oct 3, 2014
@bruth bruth deleted the issue-701 branch October 3, 2014 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale concepts in saved queries cause error when opening query
2 participants