Skip to content

Similar items #24

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

Closed
wants to merge 3 commits into from
Closed

Similar items #24

wants to merge 3 commits into from

Conversation

Spazcool
Copy link
Contributor

Styling of similar items div on single item page.

Copy link
Contributor

@mpsido mpsido left a comment

Choose a reason for hiding this comment

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

Please choose a title with a better description of what you are doing or make a more verbose description in the pull request comments

@@ -9,10 +9,10 @@
"lint": "eslint *.js",
"check": "npm ls > /dev/null"
},
"pre-commit": [
/*"pre-commit": [
Copy link
Contributor

Choose a reason for hiding this comment

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

no, don't do that

@@ -56,8 +56,10 @@ app.get('/:uuid', (req, res) => {
}
recentScans.assigned.push([matches[0].fixture, req.params.uuid]);
// console.log(recentScans);
matches.similarItems = searchDatabase({ fixture: matches[0].fixture }, allItems)
matches[0].similarItems = searchDatabase({ fixture: matches[0].fixture }, allItems)
Copy link
Contributor

Choose a reason for hiding this comment

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

need to check matches is not empty to avoid crash

@Spazcool Spazcool closed this Dec 21, 2017
@Spazcool Spazcool deleted the similarItems branch December 21, 2017 16:10
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.

2 participants