File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
routes/[projectId]/workspace Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ export class StackService {
606
606
return this . api . endpoints . branchChanges . useQuery (
607
607
{
608
608
projectId : args . projectId ,
609
+ // Handle case where URL parameters convert null to "null" string
609
610
stackId : args . stackId === 'null' ? null : args . stackId ,
610
611
branch : args . branch
611
612
} ,
@@ -622,6 +623,7 @@ export class StackService {
622
623
return this . api . endpoints . branchChanges . useQuery (
623
624
{
624
625
projectId : args . projectId ,
626
+ // Handle case where URL parameters convert null to "null" string
625
627
stackId : args . stackId === 'null' ? null : args . stackId ,
626
628
branch : args . branch
627
629
} ,
@@ -638,6 +640,7 @@ export class StackService {
638
640
const result = await this . api . endpoints . branchChanges . fetch (
639
641
{
640
642
projectId : args . projectId ,
643
+ // Handle case where URL parameters convert null to "null" string
641
644
stackId : args . stackId === 'null' ? null : args . stackId ,
642
645
branch : args . branch
643
646
} ,
Original file line number Diff line number Diff line change 17
17
const stackId = $derived (projectState .stackId .current );
18
18
19
19
// Check for stackId in URL query parameters
20
+ // Note: URLSearchParams.get() returns strings, so "null" becomes the string "null"
21
+ // We need to convert it back to actual null for proper API handling
20
22
const urlStackId = $derived ((() => {
21
23
const param = page .url .searchParams .get (' stackId' );
22
24
// Convert string "null" back to actual null
You can’t perform that action at this time.
0 commit comments