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

Simplify sortByDate #94

Closed
jimafisk opened this issue Dec 14, 2020 · 0 comments
Closed

Simplify sortByDate #94

jimafisk opened this issue Dec 14, 2020 · 0 comments

Comments

@jimafisk
Copy link
Member

We should use optional chaining instead of hasOwnProperty in layout/scripts/sort_by_date.svelte:

if (a.hasOwnProperty("fields") && b.hasOwnProperty("fields")) {

Seems to be supported in 3.24.0: sveltejs/svelte#1972 (comment) but I do still get syntax errors in VSCodium when I try to implement.

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

No branches or pull requests

1 participant