Skip to content

Commit 4b6566e

Browse files
Fix lint error
1 parent c222d4b commit 4b6566e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/apps/app/features/migrations/pages/MigrationDetailPage/MigrationDetailPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ async function getMigrationContents(migrationId: string) {
142142
const { data: schemaPath, error: pathError } = await supabase
143143
.from('schema_file_paths')
144144
.select('path')
145-
.eq('project_id', overallReview.project_id || '')
145+
.eq('project_id', migration.project_id)
146146
.single()
147147

148148
if (pathError) {
149149
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)}`,
151151
)
152152
return {
153153
migration,
@@ -165,7 +165,7 @@ async function getMigrationContents(migrationId: string) {
165165
path: urlgen(
166166
'projects/[projectId]/ref/[branchOrCommit]/schema/[...schemaFilePath]',
167167
{
168-
projectId: `${overallReview.project_id}`,
168+
projectId: `${migration.project_id}`,
169169
branchOrCommit: prDetails.head.ref,
170170
schemaFilePath: filename,
171171
},

0 commit comments

Comments
 (0)