File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 55
66from backend .api .v1 .mixins import AdminOnlyViewSet
77from 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
1111class 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 ()
Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments