Skip to content

Commit c511423

Browse files
committed
more build fixes
1 parent 9b07013 commit c511423

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/Inventory/Inventory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

stories/Support.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1414
export const SupportStory = Template.bind({});
1515
SupportStory.args = {

0 commit comments

Comments
 (0)