Skip to content

Commit

Permalink
Fixed issue when no route found to use default
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed May 10, 2023
1 parent ce35517 commit 0536da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor
/.idea
composer.lock
.phpcs*
.phpunit*
2 changes: 1 addition & 1 deletion src/Config/WebpackOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function getScriptListByRoute($routeMatched)
}
}
// No matching route found, check if default is used
if ($this->routeNotFoundUseDefault) return $this->getScriptListByTemplate();
if ($this->routeNotFoundUseDefault) return $this->getDefaultScriptList();
else return [];
}

Expand Down

0 comments on commit 0536da2

Please sign in to comment.