Skip to content

Commit

Permalink
Fix error in Generate.toViewCasExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdev committed Aug 25, 2023
1 parent b761298 commit 4644ffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/cli/src/codegen/src/Commands/Generate.elm
Expand Up @@ -1396,7 +1396,7 @@ toViewCaseExpression layouts =
let
props : String
props =
if original == current || isTopLevel == False then
if LayoutFile.toList original == LayoutFile.toList current then
"props"

else
Expand Down
5 changes: 5 additions & 0 deletions projects/cli/tests/08-examples.bats
Expand Up @@ -83,4 +83,9 @@ load helpers
@test "'16-hash-based-routing' example builds successfully" {
cd ../../examples/16-hash-based-routing
expectElmExampleBuilds
}

@test "'17-layout-props-types' example builds successfully" {
cd ../../examples/17-layout-props-types
expectElmExampleBuilds
}

0 comments on commit 4644ffe

Please sign in to comment.