Resolve "TypeError: Unable to get property 'form' of undefined or null reference"
What does this MR do?
Fixes: https://sentry.gitlap.com/gitlab/gitlabcom-clientside/issues/30927/
This error occurs when an issues#index or similar shows an empty state and we're always expecting a filtered-search box, so this will error if the filtered_search box isn't available. Non critical bug.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #32532 (moved)
Merge request reports
Activity
added 1 commit
- 9ba83011 - Check for a filteredsearch before instantiating because constructor queries
@ClemMakesApps wanna review?
assigned to @ClemMakesApps
@lbennett can you fill out the MR description? Not really sure what we are trying to achieve here
assigned to @lbennett
added ~12980 frontend labels
changed milestone to %9.3
Sorry @ClemMakesApps, any better?
assigned to @ClemMakesApps
changed milestone to %9.2
@lbennett can we also add tests to this so that we don't recreate this again?
assigned to @lbennett
@ClemMakesApps Sure! I can do the
dispatcher
one, but one of these is an inline script@ClemMakesApps I'm going to finish this dispatcher spec tomorrow, sorry :( Another one of those tricky
constructor
sadded 3 commits
added 3 commits
assigned to @ClemMakesApps
- Resolved by Luke "Jared" Bennett
assigned to @lbennett
changed milestone to %9.3
assigned to @ClemMakesApps
assigned to @lbennett
added 2307 commits
-
d7b88d77...ce0c5da0 - 2303 commits from branch
master
- ca3e17be - Check for a filteredsearch before instantiating because constructor queries
- f3003e7d - Added specs
- 6c16a700 - Remove disaptcher unit test
- 46918a7d - Add empty state test
Toggle commit list-
d7b88d77...ce0c5da0 - 2303 commits from branch
assigned to @ClemMakesApps
17 17 18 18 expect(page).not_to have_selector('.js-new-board-list') 19 19 end 20 21 scenario 'user seems an empty state' do 22 visit namespace_project_issues_path(project.namespace, project) 23 24 expect(page).to have_selector('.empty-state') 25 end assigned to @lbennett
added 1 commit
- 1b2b186e - Update list_spec.rb to enable js to test for js exceptions
assigned to @ClemMakesApps
assigned to @lbennett
changed milestone to %9.5