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(insights): Remove connect logics for rename series #20972

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

webjunkie
Copy link
Contributor

Problem

The logics shouldn't be connected directly, see #20942

Changes

  • seems it's not needed, we can find mounted if available

How did you test this code?

  • checked rename
  • ran tests

@webjunkie webjunkie requested a review from pauldambra March 18, 2024 10:25
@webjunkie
Copy link
Contributor Author

@pauldambra Would this work? The rename still works this way, I just used connect in my original PR since I thought it's cleaner.

Copy link
Contributor

github-actions bot commented Mar 18, 2024

Size Change: 0 B

Total Size: 821 kB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 821 kB

compressed-size-action

Comment on lines +185 to +188
const dataLogic = insightDataLogic.findMounted({
dashboardItemId: props.typeKey,
})
dataLogic?.actions?.loadData(true)
Copy link
Member

Choose a reason for hiding this comment

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

looks safe to me... I guess the worst thing that happens is for some reason its not mounted and someone needs to refresh 👍

@webjunkie webjunkie merged commit bc1c951 into master Mar 19, 2024
80 checks passed
@webjunkie webjunkie deleted the fix/series-rename-session-connect branch March 19, 2024 10:38
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.

2 participants