lil branch refactor

This commit is contained in:
Dax Raad
2025-11-26 12:34:48 -05:00
parent e8e474597c
commit 98031173b6
5 changed files with 14 additions and 28 deletions

View File

@@ -480,7 +480,7 @@ function App() {
<box paddingLeft={1} paddingRight={1}>
<text fg={theme.textMuted}>
{process.cwd().replace(Global.Path.home, "~")}
{sync.data.vcs?.vcs?.branch ? `:${sync.data.vcs.vcs.branch}` : ""}
{sync.data.vcs?.branch ? `:${sync.data.vcs.branch}` : ""}
</text>
</box>
</box>

View File

@@ -244,7 +244,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
}
case "vcs.branch.updated": {
setStore("vcs", "vcs", { branch: event.properties.branch })
setStore("vcs", { branch: event.properties.branch })
break
}
}