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

RemoveViewById was not removing views from viewList, only from viewIds #95 #122

Merged
merged 1 commit into from Feb 11, 2021

Conversation

sjhill01
Copy link
Contributor

@sjhill01 sjhill01 commented Oct 2, 2020

JUI.View.ViewCollectionHelper.RemoveViewById was removing the viewId, but then iterating through the whole viewList and keeping them all. This caused elements to not disappear from the UI.

Fixed by tracking the index of the removed item and making sure the new viewList didn't include that item and that subsequent views had a decremented index in viewId.

Closes #95

@jldubz jldubz merged commit 875d3d1 into HomeSeer:master Feb 11, 2021
@sjhill01 sjhill01 deleted the PSDK-95 branch January 4, 2023 03:32
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.

Action Config - RemoveViewById does not remove view from ConfigPage
2 participants