Skip to content

Remove widgets by widget id within the definition object#330

Open
sparksterz wants to merge 1 commit intoangular-dashboard-framework:masterfrom
sparksterz:duplicate-widget-patch
Open

Remove widgets by widget id within the definition object#330
sparksterz wants to merge 1 commit intoangular-dashboard-framework:masterfrom
sparksterz:duplicate-widget-patch

Conversation

@sparksterz
Copy link

This fixes an edge type use case where someone editing a dashboard adds multiple of the same widget within the same column. Once removed, it doesn't find an index in subsequent removals of the same widget type, but it does remove it from the dashboard. As a result, the visual state of the widgets in a column differs (visual state removes widgets) from the object (subsequent widgets of the same type stay in the column after the first removal), unless using the widget id to identify a unique entry.

This fixes an edge type use case where someone editing a dashboard adds multiple of the same widget within the same column. Once removed, it doesn't find an index in subsequent removals of the same widget type, but it does remove it from the dashboard. As a result, the visual state of the widgets in a column differs (visual state removes widgets) from the object (subsequent widgets of the same type stay in the column after the first removal), unless using the widget id to identify a unique entry.
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.

1 participant