Skip to content

Commit 3ca9af4

Browse files
authored
Merge branch 'main' into support/CM-2307
2 parents c147d83 + 2f14442 commit 3ca9af4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backend/src/services/member/memberAttributesService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ export default class MemberAttributesService extends LoggerBase {
2525
this.options = options
2626
}
2727

28-
// Member attributes
2928
async list(memberId: string): Promise<IAttributes> {
3029
const qx = SequelizeRepository.getQueryExecutor(this.options)
3130

32-
// Get member attributes
3331
const result = await fetchMemberAttributes(qx, memberId)
34-
if (!result.length) {
32+
if (!result) {
3533
throw new Error404('Attributes not found for the given member!')
3634
}
3735

frontend/src/modules/lf/layout/components/lf-menu-project-group-selection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const { updateSelectedProjectGroup } = lsSegmentsStore;
140140
const searchQuery = ref('');
141141
const isPopoverVisible = ref(false);
142142
const searchValue = useDebounce(searchQuery, 300);
143-
const isSearchVisible = computed(() => projectGroupsList.value.length > 5);
143+
const isSearchVisible = computed(() => projectGroupsList.value.length > 5 || searchQuery.value.length > 0);
144144
145145
let scrollContainer: HTMLElement | null = null;
146146

0 commit comments

Comments
 (0)