Skip to content

Commit 9cd7d1d

Browse files
jongallowayCopilot
andauthored
Update src/NLWebNet/Extensions/ConfigurationExtensions.cs
Co-authored-by: Copilot <[email protected]>
1 parent d21c7ae commit 9cd7d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NLWebNet/Extensions/ConfigurationExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ private static void FlattenYamlObject(string prefix, object value, IDictionary<s
343343
break;
344344

345345
default:
346-
data[prefix] = value?.ToString();
346+
var effectivePrefix = string.IsNullOrEmpty(prefix) ? "root" : prefix;
347+
data[effectivePrefix] = value?.ToString();
347348
break;
348349
}
349350
}

0 commit comments

Comments
 (0)