mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-19 08:36:09 +00:00
Apply review fixes
- crates/engine/src/cmd/datamerge/fill.rs
This commit is contained in:
1 parent
078b8bdcd2
commit
3eb8355582
1 file changed
+5
@@ -349,6 +349,11 @@ fn fill_nested_markers(doc: &mut designcraft_doc::Document, fields: &[DataField]
|
||||
mapped.sort();
|
||||
mapped.dedup();
|
||||
for sid in mapped {
|
||||
if !doc.story(sid).is_some_and(|st| {
|
||||
st.tables.values().any(|t| t.cells.iter().any(|c| nested_has(&c.text, &has))) || st.notes.iter().any(|n| nested_has(&n.text, &has))
|
||||
}) {
|
||||
continue;
|
||||
}
|
||||
let Some(st) = doc.story_mut(sid) else { continue };
|
||||
for t in st.tables.values_mut() {
|
||||
if t.cells.iter().any(|c| nested_has(&c.text, &has)) {
|
||||
|
||||
Reference in new issue
Block a user