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 some UI warnings #4436

Merged
merged 2 commits into from Mar 3, 2022
Merged

Conversation

andelf
Copy link
Collaborator

@andelf andelf commented Mar 3, 2022

Fix some UI warnings

  • Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.
  • Command register validation under mobile & browser platforms(nil vals of commands)

@@ -45,7 +45,7 @@
^js parent (.closest target ".nav-content-item")]
(.toggle (.-classList parent) "is-expand")))}

[:a.font-medium.fade-link name]
[:div.font-medium.fade-link name]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

name is used with [:a ....]

Copy link
Collaborator

@cnrpman cnrpman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@llcc llcc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@logseq-cldwalker logseq-cldwalker left a comment

Choose a reason for hiding this comment

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

Thanks for removing warnings! 👍 🚢

(->> m
(filter (comp some? val))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be great if we removed conditionals from commands altogether. They also caused issues when writing up the bb lang tasks. I'll see if I can address that soon

@logseq-cldwalker logseq-cldwalker merged commit cabb295 into logseq:master Mar 3, 2022
@andelf andelf deleted the fix/ui-warnings branch March 4, 2022 02:32
logseq-cldwalker added a commit that referenced this pull request Mar 28, 2022
Also fixed inactive commands showing up in settings page.
This is a follow up to #4436
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

4 participants