Skip to content

fix import js to only run when import elements are present#3550

Merged
compwron merged 1 commit into
rubyforgood:mainfrom
harsohailB:fix/3547
May 25, 2022
Merged

fix import js to only run when import elements are present#3550
compwron merged 1 commit into
rubyforgood:mainfrom
harsohailB:fix/3547

Conversation

@harsohailB
Copy link
Copy Markdown
Collaborator

What github issue is this PR for, if any?

Resolves #3547

What changed, and why?

  • Changed import.js to only add event listeners when on import page to avoid undefined errors in console on other pages

How will this affect user permissions?

  • Volunteer permissions: N/A
  • Supervisor permissions: N/A
  • Admin permissions: N/A

How is this tested? (please write tests!) 💖💪

Screenshots please :)

N/A

Feelings gif (optional)

@harsohailB harsohailB added javascript Touches JavaScript code codethechange code.the.change developers labels May 22, 2022
@harsohailB harsohailB self-assigned this May 22, 2022
Copy link
Copy Markdown
Collaborator

@7riumph 7riumph left a comment

Choose a reason for hiding this comment

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

Awesome! 🔥

Copy link
Copy Markdown
Collaborator

@xihai01 xihai01 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

Nice :)

@compwron compwron merged commit 58d6f54 into rubyforgood:main May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codethechange code.the.change developers javascript Touches JavaScript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import javascript has null values on non-import pages

4 participants