debug: log resultado da funcao applyChecklistTemplateToItems
This commit is contained in:
parent
c0713875b1
commit
8e5eccfd8e
1 changed files with 10 additions and 0 deletions
|
|
@ -2815,6 +2815,16 @@ export const applyChecklistTemplate = mutation({
|
||||||
hasDescription: Boolean(template.description),
|
hasDescription: Boolean(template.description),
|
||||||
});
|
});
|
||||||
const result = applyChecklistTemplateToItems(current, template, { now, actorId });
|
const result = applyChecklistTemplateToItems(current, template, { now, actorId });
|
||||||
|
// DEBUG: Verificar resultado com templateDescription
|
||||||
|
console.log("[DEBUG applyChecklistTemplate] Result:", {
|
||||||
|
added: result.added,
|
||||||
|
items: result.checklist.map(item => ({
|
||||||
|
id: item.id,
|
||||||
|
text: item.text.substring(0, 20),
|
||||||
|
templateDescription: item.templateDescription,
|
||||||
|
hasTemplateDesc: Boolean(item.templateDescription),
|
||||||
|
})),
|
||||||
|
});
|
||||||
if (result.added === 0) {
|
if (result.added === 0) {
|
||||||
return { ok: true, added: 0 };
|
return { ok: true, added: 0 };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue