-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(webapps/tasklist): render task if no filter exists #4926
base: master
Are you sure you want to change the base?
Conversation
@@ -140,7 +140,7 @@ module.exports = [ | |||
'searchQuery', | |||
function(currentFilter, searchQuery) { | |||
if (!currentFilter) { | |||
return null; | |||
return angular.copy(searchQuery); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If no filter exists we still need to return the searchQuery
otherwise taskId
will be removed from the $location
This reverts commit 0917265.
8dcf4b9
to
40d9778
Compare
@@ -179,7 +179,7 @@ module.exports = [ | |||
if (oldQuery.id && oldQuery.id !== taskListQuery.id) { | |||
clearSelectedTask(); | |||
} | |||
} else { | |||
} else if (!angular.equals(oldQuery, {})) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't clear the selected task if the new and the old search are both empty.
related to: /issues/4793