We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bdd2e commit 78c6ff9Copy full SHA for 78c6ff9
src/frontend_react/src/components/content/HomeInput.tsx
@@ -55,11 +55,11 @@ const HomeInput: React.FC<HomeInputProps> = ({
55
textareaRef.current.style.height = "auto";
56
}
57
58
- showToast("Plan created!", "success");
59
- navigate(`/plan/${response.plan_id}`);
+
60
console.log('Task response', response);
61
- if (response.plan_id != null) {
+ if (response.plan_id && response.plan_id !== null) {
62
// plan_id is valid (not null or undefined)
+ showToast("Plan created!", "success");
63
navigate(`/plan/${response.plan_id}`);
64
} else {
65
// plan_id is not valid, handle accordingly
0 commit comments