Fix work packages sidebar hook after query filter refactoring