File tree 1 file changed +3
-3
lines changed
frontend/apps/app/features/migrations/pages/MigrationDetailPage 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ async function getMigrationContents(migrationId: string) {
142
142
const { data : schemaPath , error : pathError } = await supabase
143
143
. from ( 'schema_file_paths' )
144
144
. select ( 'path' )
145
- . eq ( 'project_id' , overallReview . project_id || '' )
145
+ . eq ( 'project_id' , migration . project_id )
146
146
. single ( )
147
147
148
148
if ( pathError ) {
149
149
console . warn (
150
- `No schema path found for project ${ overallReview . project_id } : ${ JSON . stringify ( pathError ) } ` ,
150
+ `No schema path found for project ${ migration . project_id } : ${ JSON . stringify ( pathError ) } ` ,
151
151
)
152
152
return {
153
153
migration,
@@ -165,7 +165,7 @@ async function getMigrationContents(migrationId: string) {
165
165
path : urlgen (
166
166
'projects/[projectId]/ref/[branchOrCommit]/schema/[...schemaFilePath]' ,
167
167
{
168
- projectId : `${ overallReview . project_id } ` ,
168
+ projectId : `${ migration . project_id } ` ,
169
169
branchOrCommit : prDetails . head . ref ,
170
170
schemaFilePath : filename ,
171
171
} ,
You can’t perform that action at this time.
0 commit comments