1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix bug where port-forward info did not update on pod details page when different pod (in same deployment?) is clicked

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2021-10-06 19:32:40 -04:00
parent 8c35a416ff
commit c42a66c593
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export class ServicePortComponent extends React.Component<Props> {
componentDidMount() {
disposeOnUnmount(this, [
reaction(() => portForwardStore.portForwards, () => this.init()),
reaction(() => [ portForwardStore.portForwards, this.props.service ], () => this.init()),
]);
}

View File

@ -56,7 +56,7 @@ export class PodContainerPort extends React.Component<Props> {
componentDidMount() {
disposeOnUnmount(this, [
reaction(() => portForwardStore.portForwards, () => this.init()),
reaction(() => [ portForwardStore.portForwards, this.props.pod ], () => this.init()),
]);
}