Skip to content

Commit 9572334

Browse files
authored
fix: check if the project path is set before fetching branches (#582)
1 parent 6312afa commit 9572334

File tree

6 files changed

+7
-21
lines changed

6 files changed

+7
-21
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ build-renderer: node_modules/.installed src/version.ts ## Build renderer process
145145
build-static: ## Copy static assets to dist
146146
@echo "Copying static assets..."
147147
@mkdir -p dist
148-
@./scripts/copy-fonts.sh
149148
@cp static/splash.html dist/splash.html
150149
@cp -r public/* dist/
151150

-56.7 KB
Binary file not shown.
-57.1 KB
Binary file not shown.

scripts/copy-fonts.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/components/ChatInput/useCreationWorkspace.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export function useCreationWorkspace({
5050

5151
// Load branches on mount
5252
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+
}
5358
const loadBranches = async () => {
5459
try {
5560
const result = await window.api.projects.listBranches(projectPath);

src/styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
/* Geist Font Declarations */
55
@font-face {
66
font-family: "Geist";
7-
src: url("/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
7+
src: url("../../node_modules/geist/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
88
font-weight: 100 900;
99
font-style: normal;
1010
font-display: swap;
1111
}
1212

1313
@font-face {
1414
font-family: "Geist Mono";
15-
src: url("/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
15+
src: url("../../node_modules/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
1616
font-weight: 100 900;
1717
font-style: normal;
1818
font-display: swap;

0 commit comments

Comments
 (0)