Skip to content

Commit d441f04

Browse files
committed
refactor
- linting
1 parent 8839fd7 commit d441f04

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

apps/desktop/cypress/e2e/support/mock/changes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ export function isGetBranchChangesParams(args: unknown): args is GetBranchChange
157157
args !== null &&
158158
'projectId' in args &&
159159
typeof args['projectId'] === 'string' &&
160-
(typeof (args as any).stackId === 'string' || (args as any).stackId === undefined || (args as any).stackId === null) &&
160+
(typeof (args as any).stackId === 'string' ||
161+
(args as any).stackId === undefined ||
162+
(args as any).stackId === null) &&
161163
'branch' in args &&
162164
typeof args['branch'] === 'string'
163165
);

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,12 @@ export class StackService {
619619
);
620620
}
621621

622-
branchChange(args: { projectId: string; stackId?: string | null; branch: BranchRef; path: string }) {
622+
branchChange(args: {
623+
projectId: string;
624+
stackId?: string | null;
625+
branch: BranchRef;
626+
path: string;
627+
}) {
623628
return this.api.endpoints.branchChanges.useQuery(
624629
{
625630
projectId: args.projectId,

apps/desktop/src/routes/[projectId]/workspace/+page.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
// Check for stackId in URL query parameters
2020
// Note: URLSearchParams.get() returns strings, so "null" becomes the string "null"
2121
// We need to convert it back to actual null for proper API handling
22-
const urlStackId = $derived((() => {
23-
const param = page.url.searchParams.get('stackId');
24-
// Convert string "null" back to actual null
25-
return param === 'null' ? null : param;
26-
})());
22+
const urlStackId = $derived(
23+
(() => {
24+
const param = page.url.searchParams.get('stackId');
25+
// Convert string "null" back to actual null
26+
return param === 'null' ? null : param;
27+
})()
28+
);
2729
let scrollToStackId = $state<string | undefined>(undefined);
2830
2931
const firstStackResult = $derived(stackService.stackAt(projectId, 0));

0 commit comments

Comments
 (0)