File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
routes/[projectId]/workspace Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,9 @@ export function isGetBranchChangesParams(args: unknown): args is GetBranchChange
157
157
args !== null &&
158
158
'projectId' in args &&
159
159
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 ) &&
161
163
'branch' in args &&
162
164
typeof args [ 'branch' ] === 'string'
163
165
) ;
Original file line number Diff line number Diff line change @@ -619,7 +619,12 @@ export class StackService {
619
619
) ;
620
620
}
621
621
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
+ } ) {
623
628
return this . api . endpoints . branchChanges . useQuery (
624
629
{
625
630
projectId : args . projectId ,
Original file line number Diff line number Diff line change 19
19
// Check for stackId in URL query parameters
20
20
// Note: URLSearchParams.get() returns strings, so "null" becomes the string "null"
21
21
// 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
+ );
27
29
let scrollToStackId = $state <string | undefined >(undefined );
28
30
29
31
const firstStackResult = $derived (stackService .stackAt (projectId , 0 ));
You can’t perform that action at this time.
0 commit comments