Skip to content

Commit dd8229c

Browse files
authored
Merge pull request #7 from partial-coffee/fix-basepath
basepath second fix
2 parents 7e8c641 + 603ef10 commit dd8229c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

partial.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,12 @@ func (p *Partial) getServiceData() map[string]any {
579579

580580
func (p *Partial) getBasePath() string {
581581
if p.parent != nil {
582-
return p.parent.getBasePath()
582+
bp := p.parent.getBasePath()
583+
if bp != "" {
584+
return bp
585+
}
583586
}
587+
584588
return p.basePath
585589
}
586590

0 commit comments

Comments
 (0)