Skip to content

Commit

Permalink
fix issue with status type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaulagiri committed May 16, 2024
1 parent df25bb1 commit 041126d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const STATUSES: { text: string; iconName: string }[] = Object.values(
export interface HdsAppFooterStatusLinkSignature {
Args: HdsInteractiveSignature['Args'] & {
itemStyle?: SafeString;
status: HdsAppFooterStatusTypes;
status?: HdsAppFooterStatusTypes;
statusIcon?: string;
statusIconColor?: string;
text?: string;
Expand Down Expand Up @@ -61,6 +61,7 @@ export default class HdsAppFooterStatusLinkComponent extends Component<HdsAppFoo
).join(', ')} received: ${this.args.status}`,
Object.keys(STATUSES).includes(status)
);
return status as HdsAppFooterStatusTypes;
}
return status;
}
Expand Down

0 comments on commit 041126d

Please sign in to comment.