Skip to content

Commit 4956aec

Browse files
committed
Remove unnecessary derived
Fetching the name of the branch doesn’t need to be double-wrapped in a derived
1 parent f434341 commit 4956aec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/desktop/src/lib/stacks/stackService.svelte.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,7 @@ export class StackService {
737737
}
738738

739739
newBranchName(projectId: string) {
740-
const result = $derived(
741-
this.api.endpoints.newBranchName.useQuery({ projectId }, { forceRefetch: true })
742-
);
743-
return result;
740+
return this.api.endpoints.newBranchName.useQuery({ projectId }, { forceRefetch: true });
744741
}
745742

746743
async fetchNewBranchName(projectId: string) {

0 commit comments

Comments
 (0)