Description
- As import elements do not exist on non-import pages, adding an event listener through javascript results in an undefined error to be thrown in the console

Existing gem(s), file(s) needing updating, changing or deleting
N/A
New file(s) needing creating
app/javascript/src/import.js
- Add condition to only run the respective code when the elements exist
Description
Existing gem(s), file(s) needing updating, changing or deleting
N/A
New file(s) needing creating
app/javascript/src/import.js