Skip to content

Commit afecf4c

Browse files
authored
Fix js-error in page-header component
Added optional chaining to buttonTitle-property of page-header component to fix errors throwing when no butto-title is set from page.
1 parent 4e0207c commit afecf4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widgets/ui/page-header/page-header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IconSvg } from "~/src/shared/ui";
33
44
type Props = {
55
title?: string;
6-
buttonTitle: string;
6+
buttonTitle?: string;
77
};
88
99
type Emits = {

0 commit comments

Comments
 (0)