File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ const Inventory: React.FunctionComponent<ISupportProps> = () => {
158158 ) {
159159 if ( event . key === 'Escape' || event . key === 'Tab' ) {
160160 setIsBulkSelectOpen ( ! isBulkSelectOpen ) ;
161- bulkSelectToggleRef . current ?. querySelector ( 'button' ) . focus ( ) ;
161+ bulkSelectToggleRef . current ?. querySelector ( 'button' ) ? .focus ( ) ;
162162 }
163163 }
164164 } ;
@@ -217,7 +217,7 @@ const Inventory: React.FunctionComponent<ISupportProps> = () => {
217217 onSelect = { ( _ev , itemId ) => {
218218 selectAllRepos ( itemId === 1 || itemId === 2 ) ;
219219 setIsBulkSelectOpen ( ! isBulkSelectOpen ) ;
220- bulkSelectToggleRef . current ?. querySelector ( 'button' ) . focus ( ) ;
220+ bulkSelectToggleRef . current ?. querySelector ( 'button' ) ? .focus ( ) ;
221221 } }
222222 >
223223 < MenuContent >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default {
99} ;
1010
1111//👇 We create a “template” of how args map to rendering
12- const Template : Story < ComponentProps < typeof Resources > > = ( args ) => < Support { ...args } /> ;
12+ const Template : Story < ComponentProps < typeof Resources > > = ( args ) => < Resources { ...args } /> ;
1313
1414export const SupportStory = Template . bind ( { } ) ;
1515SupportStory . args = {
You can’t perform that action at this time.
0 commit comments