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 logs modal for valid json #44

Merged
merged 1 commit into from Mar 5, 2020
Merged

Fix logs modal for valid json #44

merged 1 commit into from Mar 5, 2020

Conversation

ricoberger
Copy link
Member

If the returned logs from the Kubernetes API server are a valid JSON object we are parsing the log and returning an object instead of a string.

This had break the modal and the app crashes. This is now fixed, by checking if the returned data is a string. If not we are reverting the parsing befor passing the data to the Editor component.

If the returned logs from the Kubernetes API server are a valid JSON
object we are parsing the log and returning an object instead of a
string.

This had break the modal and the app crashes. This is now fixed, by
checking if the returned data is a string. If not we are reverting the
parsing befor passing the data to the Editor component.
@ricoberger ricoberger added the bug Something isn't working label Mar 5, 2020
@ricoberger ricoberger merged commit ee35016 into master Mar 5, 2020
@ricoberger ricoberger deleted the fix-logs-modal branch March 5, 2020 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant