mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-01 16:36:19 +03:00
Remove log statements.
This commit is contained in:
parent
eeea9aff05
commit
a0af3dba38
@ -592,7 +592,6 @@ function sortTemplates(templates) {
|
|||||||
return templates.sort((first, second) => {
|
return templates.sort((first, second) => {
|
||||||
const a = sortScore(first);
|
const a = sortScore(first);
|
||||||
const b = sortScore(second);
|
const b = sortScore(second);
|
||||||
console.log({ a, b });
|
|
||||||
if (b.splatScore === a.splatScore) {
|
if (b.splatScore === a.splatScore) {
|
||||||
if (b.staticSegments === a.staticSegments) {
|
if (b.staticSegments === a.staticSegments) {
|
||||||
return b.dynamicSegments - a.dynamicSegments;
|
return b.dynamicSegments - a.dynamicSegments;
|
||||||
@ -612,7 +611,6 @@ function sortScore(name) {
|
|||||||
const parsedParams = routeHelpers.parseRouteParamsWithStatic(name);
|
const parsedParams = routeHelpers.parseRouteParamsWithStatic(name);
|
||||||
return parsedParams.reduce(
|
return parsedParams.reduce(
|
||||||
(currentScore, segment) => {
|
(currentScore, segment) => {
|
||||||
console.log({ kind: segment.kind });
|
|
||||||
switch (segment.kind) {
|
switch (segment.kind) {
|
||||||
case "dynamic": {
|
case "dynamic": {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user