Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all 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 src/components/notifications/Actions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
>
<eventbox>
<box className={'notification-card-actions'} hexpand valign={Gtk.Align.END}>
{notification.get_actions().map((action) => {
{notification.get_actions().filter((a) => a.id !== '').map((action) => {

Check failure on line 49 in src/components/notifications/Actions/index.tsx

View workflow job for this annotation

GitHub Actions / code_quality

Replace `.get_actions().filter((a)·=>·a.id·!==·'')` with `⏎························.get_actions()⏎························.filter((a)·=>·a.id·!==·'')⏎························`
return <ActionButton notification={notification} action={action} />;

Check failure on line 50 in src/components/notifications/Actions/index.tsx

View workflow job for this annotation

GitHub Actions / code_quality

Insert `····`
})}

Check failure on line 51 in src/components/notifications/Actions/index.tsx

View workflow job for this annotation

GitHub Actions / code_quality

Insert `····`
</box>
</eventbox>
</revealer>
Expand Down
2 changes: 1 addition & 1 deletion src/components/notifications/Notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const NotificationCard = ({
}: NotificationCardProps): JSX.Element => {
let actionBox: ActionBox | null;

if (notification.get_actions().length) {
if (notification.get_actions().filter((a) => a.id !== '').length) {
actionBox = <Actions notification={notification} showActions={showActions} />;
} else {
actionBox = null;
Expand Down
Loading