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: provide correct return value for the method #6648

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Apr 4, 2024

What does this PR do?

The method contract was invalid but then the client was changing the expected value to match the real value
so here just fix the returned value so the client does not need to change the return type

Screenshot / video of UI

What issues does this PR fix or reference?

fixes #6631

How to test this PR?

go to pods details view with a non OpenShift cluster, you should no longer see errors in the console

  • Tests are covering the bug fix or the new feature

and do not try to cast the return value of the method to something
else in the client

The method contract was invalid but then the client was changing
the expected value to match the real value

so here just fix the returned value so the client does not
need to change the return type

fixes containers#6631

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf requested a review from a team as a code owner April 4, 2024 12:21
@benoitf benoitf requested review from jeffmaury and cdrage and removed request for a team April 4, 2024 12:21
Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@benoitf benoitf mentioned this pull request Apr 4, 2024
7 tasks
@benoitf benoitf merged commit d803866 into containers:main Apr 4, 2024
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.10.0 milestone Apr 4, 2024
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.

Uncaught TypeError: Cannot read properties of undefined (reading 'filter') at PodActions.svelte
4 participants