Skip to content

Commit

Permalink
cleaning up duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 4, 2023
1 parent 4c7de03 commit 7d04c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/ComponentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getName(): string

public function getCategory(): string
{
return $this->getExport('category') ?? 'General';
return $this->getExport('category', $this->category);
}

public function getHandle(): string
Expand Down

0 comments on commit 7d04c55

Please sign in to comment.