Skip to content

Commit ec66d6e

Browse files
committed
Fixes
1 parent ad511ab commit ec66d6e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/backend/api/v1/projects/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from backend.api.v1.mixins import AdminOnlyViewSet
77
from backend.api.v1.projects.serializers import ProjectSerializer
8-
from backend.apps.clusters.models import Label, Project
8+
from backend.apps.clusters.models import Project
99

1010

1111
class ProjectView(
@@ -20,5 +20,5 @@ class ProjectView(
2020
search_fields = ["name"]
2121
ordering = ["name"]
2222

23-
def get_queryset(self) -> QuerySet[Label]:
23+
def get_queryset(self) -> QuerySet[Project]:
2424
return Project.objects.all()

src/frontend/app/AppLayout/AppLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {
166166
ref={toggleRef}
167167
onClick={onSettingsDropdownSelect}
168168
isExpanded={isSettingsDropdownOpen}
169+
aria-label={'settings-dropdown'}
169170
>
170171
<Icon>
171172
<CogsIcon />

src/frontend/app/Components/MultiChoiceDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const MultiChoiceDropdown: React.FunctionComponent<MultiChoiceDropdownPro
4848
React.useEffect(() => {
4949
const allOptions = props?.options?.length ? (deepClone(props.options) as FilterOptionWithId[]) : [];
5050
setOptions(allOptions);
51-
}, [searchValue, props.options]);
51+
}, [props.options]);
5252

5353
const onToggleClick = (ev: React.MouseEvent) => {
5454
ev.stopPropagation();
@@ -66,11 +66,11 @@ export const MultiChoiceDropdown: React.FunctionComponent<MultiChoiceDropdownPro
6666
};
6767

6868
const onSearch = (value: string) => {
69+
setSearchValue(value);
6970
if (timeoutValue) {
7071
clearTimeout(timeoutValue);
7172
setTimeoutValue(undefined);
7273
}
73-
7474
const timeout: number = window.setTimeout(() => {
7575
if (props.onSearch) {
7676
props.onSearch(value?.length ? value : null);

0 commit comments

Comments
 (0)