Skip to content

[Controls Anywhere] Fix errors with changing control types#241019

Merged
Zacqary merged 4 commits intoelastic:controlsAnywherefrom
Zacqary:240910-pinned=typechange-fix
Oct 30, 2025
Merged

[Controls Anywhere] Fix errors with changing control types#241019
Zacqary merged 4 commits intoelastic:controlsAnywherefrom
Zacqary:240910-pinned=typechange-fix

Conversation

@Zacqary
Copy link
Copy Markdown
Contributor

@Zacqary Zacqary commented Oct 28, 2025

Summary

Fixes #240190

  • Fixes the Panel not found error when changing a pinned control from one type to another, e.g. Options List to Range Slider
  • Fixes a runtime error related to the display settings popover when deleting multiple controls

@Zacqary Zacqary requested a review from a team as a code owner October 28, 2025 17:14
@Zacqary Zacqary added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// Project:Controls labels Oct 28, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@Heenawter Heenawter changed the title [Controls Anywhere] Fix errors with changing control types and deleting controls [Controls Anywhere] Fix errors with changing control types Oct 28, 2025
public readonly MenuItem = ({ context }: { context: EmbeddableApiContext }) => {
const { embeddable } = context;
if (!apiIsPinnableControlApi(embeddable)) throw new IncompatibleActionError();
if (!apiIsPinnableControlApi(embeddable)) return null;
Copy link
Copy Markdown
Contributor Author

@Zacqary Zacqary Oct 29, 2025

Choose a reason for hiding this comment

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

Ran into a runtime error here when resetting the dashboard. This fixes it, figured it didn't need a second PR

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 29, 2025

💔 Build Failed

Failed CI Steps

History

@Zacqary Zacqary merged commit ceea89a into elastic:controlsAnywhere Oct 30, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Project:Controls Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants