Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
briangregoryholmes committed Dec 9, 2024
1 parent 2b666e6 commit f6247b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions runtime/compilers/rillv1/parse_rillyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ func (p *Parser) parseRillYAML(ctx context.Context, path string) error {
return newYAMLError(err)
}

dec := yaml.NewDecoder(strings.NewReader(data))
dec.KnownFields(true)
err = dec.Decode(tmp)
if err != nil {
return newYAMLError(err)
if data != "" {
dec := yaml.NewDecoder(strings.NewReader(data))
dec.KnownFields(true)
err = dec.Decode(tmp)
if err != nil {
return newYAMLError(err)
}
}

// Look for environment-specific overrides
Expand Down
8 changes: 4 additions & 4 deletions web-common/src/features/project/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export function useProjectTitle(instanceId: string) {
// Ignore
}

return (
return String(
projectData?.display_name ||
projectData?.title ||
projectData?.name ||
"Untitled Rill Project"
projectData?.title ||
projectData?.name ||
"Untitled Rill Project",
);
},
},
Expand Down

0 comments on commit f6247b1

Please sign in to comment.