Skip to content

Commit

Permalink
only register routes for enabled packages (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip authored and Aaron Judd committed Oct 25, 2016
1 parent 5a4fcb4 commit 02af3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/modules/router/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Router.initPackageRoutes = () => {
for (const pkg of pkgs) {
const newRoutes = [];
// pkg registry
if (pkg.registry) {
if (pkg.registry && pkg.enabled) {
const registry = Array.from(pkg.registry);
for (const registryItem of registry) {
// registryItems
Expand Down

0 comments on commit 02af3e3

Please sign in to comment.