Skip to content

Commit

Permalink
Merge pull request #8017 from Nonslas/fix/make-widget-command
Browse files Browse the repository at this point in the history
Fix invalid path when run make widget command options -S or -C
  • Loading branch information
danharrin authored Aug 23, 2023
2 parents ba0f2e8 + 594d033 commit 24fe227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widgets/src/Commands/MakeWidgetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function handle(): int

if (! $this->option('force') && $this->checkForCollision([
$path,
($this->option('stats-overview') || $this->option('chart')) ?: $viewPath,
...($this->option('stats-overview') || $this->option('chart')) ? [] : [$viewPath],
])) {
return static::INVALID;
}
Expand Down

0 comments on commit 24fe227

Please sign in to comment.