💡 (NewFlowCardComponent, undrawCards): add console.error statements for debugging flow data
This commit is contained in:
parent
e5735fd0f4
commit
7646d49dab
2 changed files with 8 additions and 0 deletions
|
|
@ -18,7 +18,11 @@ export default function NewFlowCardComponent() {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
console.error("flow.data", "new flow");
|
||||||
|
console.error("flow.data", "new flow");
|
||||||
addFlow(true).then((id) => {
|
addFlow(true).then((id) => {
|
||||||
|
console.error("flow.data", id);
|
||||||
|
console.error("flow.data", id);
|
||||||
setFolderUrl(folderId ?? "");
|
setFolderUrl(folderId ?? "");
|
||||||
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
|
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,12 @@ export default function UndrawCardComponent({
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
console.error("flow.data", flow.data);
|
||||||
|
console.error("flow.data", flow);
|
||||||
|
|
||||||
updateIds(flow.data!);
|
updateIds(flow.data!);
|
||||||
addFlow(true, flow).then((id) => {
|
addFlow(true, flow).then((id) => {
|
||||||
|
console.error("flow.data", flow);
|
||||||
setFolderUrl(folderId ?? "");
|
setFolderUrl(folderId ?? "");
|
||||||
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
|
navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue