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 unregisterSection Bug in NcAppSettingsDialog #4808

Closed

Conversation

JonathanTreffler
Copy link
Contributor

☑️ Resolves

Fixes "Error: Duplicate section id found: [any section id, that is used dynamically]. Settings navigation sections must have unique section ids." error, when enabling any previously disabled section using v-if.
This usage of dynamic sections is supported, but is broken since #4745, because of a very simple logic error: the unregisterSection function is supposed to filter out that particular section, that just got unregistered. Instead it currently removes any section besides of the unregistered one, leaving behind a broken component state.

🖼️ Screenshots

No design changes

🚧 Tasks

  • Replace "===" with "!==" 😆

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
@JonathanTreffler
Copy link
Contributor Author

Because I don't have permissions in this repo, since the transfer to nextcloud-libraries I cannot add him as a reviewer, so I'll just leave a mention: @susnux you wrote the mentioned PR, please give this a review :)

@ShGKme
Copy link
Contributor

ShGKme commented Nov 13, 2023

There are 2 PRs already that fixes this and some related issues:

The problem also caused by incorrect provide of the method.

@JonathanTreffler
Copy link
Contributor Author

closed in favor of #4798

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