Skip to content

Commit

Permalink
fix: Fixed error in WPP.labels.getAllLabels (fix #780)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Dec 1, 2022
1 parent 645efc7 commit 63ec7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/labels/functions/getAllLabels.ts
Expand Up @@ -24,7 +24,7 @@ export async function getAllLabels(): Promise<Label[]> {
return {
id: e.id!,
name: e.name!,
color: assertColor(e.hexColor),
color: e.hexColor ? assertColor(e.hexColor) : null,
count: e.count || 0,
hexColor: e.hexColor,
};
Expand Down
2 changes: 1 addition & 1 deletion src/labels/types.ts
Expand Up @@ -17,7 +17,7 @@
export interface Label {
id: string;
name: string;
color: number;
color: number | null;
count: number;
hexColor: string;
}

0 comments on commit 63ec7bc

Please sign in to comment.