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 7402804 commit 9782fa6Copy full SHA for 9782fa6
src/components/ChatInput/useCreationWorkspace.ts
@@ -50,6 +50,11 @@ export function useCreationWorkspace({
50
51
// Load branches on mount
52
useEffect(() => {
53
+ // This can be created with an empty project path when the user is
54
+ // creating a new workspace.
55
+ if (!projectPath.length) {
56
+ return;
57
+ }
58
const loadBranches = async () => {
59
try {
60
const result = await window.api.projects.listBranches(projectPath);
0 commit comments