File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
app/api/diff/[owner]/[repository]/[...path] Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { diffCalculator } from "@/composition"
66interface GetDiffParams {
77 owner : string
88 repository : string
9- path : [ string ]
9+ path : string [ ]
1010}
1111
1212export async function GET ( req : NextRequest , { params } : { params : Promise < GetDiffParams > } ) {
Original file line number Diff line number Diff line change 11import { useSessionStorage } from "usehooks-ts"
22
33export default function useDiffbarOpen ( ) {
4- return useSessionStorage ( "isDiffbarOpen" , false )
4+ return useSessionStorage ( "isDiffbarOpen" , false , { initializeWithValue : false } )
55}
Original file line number Diff line number Diff line change 11import { useSessionStorage } from "usehooks-ts"
22
33export default function useSidebarOpen ( ) {
4- return useSessionStorage ( "isSidebarOpen" , true )
4+ return useSessionStorage ( "isSidebarOpen" , true , { initializeWithValue : false } )
55}
You can’t perform that action at this time.
0 commit comments