Fix missing method NameNormalized panic

Closes #12795
This commit is contained in:
Bjørn Erik Pedersen
2024-08-25 22:51:38 +02:00
parent e1becf1dfe
commit 5f667f8796
2 changed files with 9 additions and 1 deletions

View File

@@ -560,7 +560,7 @@ func (m *pageMap) getOrCreateResourcesForPage(ps *pageState) resource.Resources
for _, r := range res2 {
var found bool
for _, r2 := range res {
if r2.(resource.NameNormalizedProvider).NameNormalized() == r.(resource.NameNormalizedProvider).NameNormalized() {
if resource.NameNormalizedOrName(r2) == resource.NameNormalizedOrName(r) {
found = true
break
}