Skip to content

Fix import form errors #9498

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GilbertCherrie
Copy link
Member

This pr removes the constant error messages on the import form

Before:
Screenshot 2025-06-13 at 1 54 44 PM

After:
Screenshot 2025-06-13 at 1 53 26 PM

@GilbertCherrie GilbertCherrie requested a review from a team as a code owner June 13, 2025 17:55
@GilbertCherrie GilbertCherrie requested a review from Fryguy June 13, 2025 17:56
@GilbertCherrie GilbertCherrie added bug and removed bug labels Jun 13, 2025
@miq-bot
Copy link
Member

miq-bot commented Jun 13, 2025

Checked commit GilbertCherrie@6b099c4 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.62.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@@ -66,7 +66,7 @@ window.ImportSetup = {
window.addEventListener('message', function(event) {
var messageData = event.data.message;

if (messageData.level === 'error') {
if (messageData && messageData.level === 'error') {
Copy link
Member

Choose a reason for hiding this comment

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

Can we use the chaining operator?

Suggested change
if (messageData && messageData.level === 'error') {
if (messageData?.level === 'error') {

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure, its throwing these errors with it

Screenshot 2025-06-13 at 3 44 53 PM

Copy link
Member

@Fryguy Fryguy Jun 17, 2025

Choose a reason for hiding this comment

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

ugh why is Javascript so terrible - ok I guess back to the original code :(

https://stackoverflow.com/questions/59972341/how-to-make-webpack-accept-optional-chaining-without-babel

Looks like it's in webpack 5

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 this pull request may close these issues.

3 participants