fix key validation logic (#3936)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-04-07 17:29:53 -07:00
1 parent 5e9a505465
commit 16cae8abaf
2 files changed
+29 -1

No files matched your search

+3 -1
View File
@@ -236,11 +236,13 @@ impl TemplateBody {
// Assign paths to all nodes in the template
body.assign_paths_inner(&nodes);
body.validate_key();
// And then save the roots
body.roots = nodes;
// Finally, validate the key
body.validate_key();
body
}