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

Cannot read properties of undefined (reading 'openmct') #7983

Open
1 of 7 tasks
johnriedel opened this issue Jan 14, 2025 · 2 comments · May be fixed by #7984
Open
1 of 7 tasks

Cannot read properties of undefined (reading 'openmct') #7983

johnriedel opened this issue Jan 14, 2025 · 2 comments · May be fixed by #7984
Labels

Comments

@johnriedel
Copy link
Contributor

Summary

When using the "Import From JSON" action, validation throws an uncaught error if an improperly formatted/non-JSON text file is selected.

Image

Expected vs Current Behavior

Expected: An error notification should appear in the UI like in this image below.

Image

Actual: No error notification appears.

Steps to Reproduce

  1. From the action menu, click "Import From JSON"
  2. In the Import From JSON pop-up dialog, select a non-JSON text file
  3. A red X should now appear next to the select-file button.
  4. Close the import dialog. There's no error notification.

Environment

  • Open MCT Version: 4.1.0-next
  • Deployment Type: np m dev
  • OS: Ubuntu 22.04
  • Browser: Firefox 134.0 64-bit, Chromium 131.0.6778.264, Brave 1.73.105

Impact Check List

  • Data loss or misrepresented data?
  • Regression? Did this used to work or has it always been broken?
  • Is there a workaround available?
  • Does this impact a critical component?
  • Is this just a visual bug with no functional impact?
  • Does this block the execution of e2e tests?
  • Does this have an impact on Performance?

Additional Information

@johnriedel
Copy link
Contributor Author

Code update complete. Opening PR soon.....

@johnriedel johnriedel linked a pull request Jan 14, 2025 that will close this issue
14 tasks
@johnriedel
Copy link
Contributor Author

Associated PR: #7984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant