Skip to content

Commit

Permalink
more build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Feb 22, 2024
1 parent 9b07013 commit c511423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/Inventory/Inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const Inventory: React.FunctionComponent<ISupportProps> = () => {
) {
if (event.key === 'Escape' || event.key === 'Tab') {
setIsBulkSelectOpen(!isBulkSelectOpen);
bulkSelectToggleRef.current?.querySelector('button').focus();
bulkSelectToggleRef.current?.querySelector('button')?.focus();
}
}
};
Expand Down Expand Up @@ -217,7 +217,7 @@ const Inventory: React.FunctionComponent<ISupportProps> = () => {
onSelect={(_ev, itemId) => {
selectAllRepos(itemId === 1 || itemId === 2);
setIsBulkSelectOpen(!isBulkSelectOpen);
bulkSelectToggleRef.current?.querySelector('button').focus();
bulkSelectToggleRef.current?.querySelector('button')?.focus();
}}
>
<MenuContent>
Expand Down
2 changes: 1 addition & 1 deletion stories/Support.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
};

//👇 We create a “template” of how args map to rendering
const Template: Story<ComponentProps<typeof Resources>> = (args) => <Support {...args} />;
const Template: Story<ComponentProps<typeof Resources>> = (args) => <Resources {...args} />;

export const SupportStory = Template.bind({});
SupportStory.args = {
Expand Down

0 comments on commit c511423

Please sign in to comment.