💡 (NewFlowCardComponent, undrawCards): add console.error statements for debugging flow data

This commit is contained in:
cristhianzl 2024-06-26 17:46:56 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 7646d49dab
2 changed files with 8 additions and 0 deletions

View file

@ -18,7 +18,11 @@ export default function NewFlowCardComponent() {
return (
<Card
onClick={() => {
console.error("flow.data", "new flow");
console.error("flow.data", "new flow");
addFlow(true).then((id) => {
console.error("flow.data", id);
console.error("flow.data", id);
setFolderUrl(folderId ?? "");
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
});

View file

@ -105,8 +105,12 @@ export default function UndrawCardComponent({
return (
<Card
onClick={() => {
console.error("flow.data", flow.data);
console.error("flow.data", flow);
updateIds(flow.data!);
addFlow(true, flow).then((id) => {
console.error("flow.data", flow);
setFolderUrl(folderId ?? "");
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
});