Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/core/src/components/components/Modal/Modal.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const Container = styled.div<{ width?: number; height?: number }>(

export const CloseButton = (props: React.ComponentProps<typeof IconButton>) => (
<Dialog.Close asChild>
<IconButton {...props}>
<IconButton aria-label="Close" {...props}>
<CrossIcon />
</IconButton>
</Dialog.Close>
Expand Down
1 change: 1 addition & 0 deletions code/core/src/manager/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const Sidebar = React.memo(function Sidebar({
tooltip={<TooltipNoteWrapper note="Create a new story" />}
>
<CreateNewStoryButton
aria-label="Create a new story"
isMobile={isMobile}
onClick={() => {
setIsFileSearchModalOpen(true);
Expand Down
2 changes: 1 addition & 1 deletion code/core/src/manager/utils/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getDescendantIds = memoize(1000)((
skipLeafs: boolean
): string[] => {
const entry = data[id];
const children = entry.type === 'story' || entry.type === 'docs' ? [] : entry.children;
const children = entry.type === 'story' || entry.type === 'docs' ? [] : entry.children || [];
return children.reduce((acc, childId) => {
const child = data[childId];

Expand Down
Loading