File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
pages/WorkspacesPage/filter Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
} from "./SelectFilter" ;
12
12
13
13
const options : SelectFilterOption [ ] = Array . from ( { length : 50 } , ( _ , i ) => ( {
14
- startIcon : < UserAvatar username = { `username ${ i } ` } size = "xs" /> ,
14
+ startIcon : < UserAvatar username = { `username ${ i + 1 } ` } size = "xs" /> ,
15
15
label : `Option ${ i + 1 } ` ,
16
16
value : `option-${ i + 1 } ` ,
17
17
} ) ) ;
Original file line number Diff line number Diff line change
1
+ import { action } from "@storybook/addon-actions" ;
1
2
import type { Meta , StoryObj } from "@storybook/react" ;
2
3
import { userEvent , within } from "@storybook/test" ;
3
4
import { UserAvatar } from "components/UserAvatar/UserAvatar" ;
@@ -109,7 +110,7 @@ export const NoSelectedOption: Story = {
109
110
< SelectMenuButton css = { { width : 200 } } > All users</ SelectMenuButton >
110
111
</ SelectMenuTrigger >
111
112
< SelectMenuContent >
112
- < SelectMenuSearch onChange = { ( ) => { } } />
113
+ < SelectMenuSearch onChange = { action ( "search" ) } />
113
114
< SelectMenuList >
114
115
{ opts . map ( ( o ) => (
115
116
< SelectMenuItem key = { o } >
Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ export const useTemplateFilterMenu = ({
31
31
const template = templates . find ( ( template ) => template . name === value ) ;
32
32
if ( template ) {
33
33
return {
34
- label :
35
- template . display_name !== ""
36
- ? template . display_name
37
- : template . name ,
34
+ label : template . display_name || template . name ,
38
35
value : template . name ,
39
36
startIcon : < TemplateAvatar size = "xs" template = { template } /> ,
40
37
} ;
You can’t perform that action at this time.
0 commit comments