Skip to content

Commit 4a4305d

Browse files
committed
Fix removing migrations
1 parent f4376f4 commit 4a4305d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/RemoveMigrationsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class RemoveMigrationsCommand extends Command {
2828
this.item.dbContext,
2929
),
3030
);
31-
const index = migrations?.indexOf(this.item) || -1;
31+
const index = (migrations || []).indexOf(this.item);
3232
if (index === -1) {
3333
return;
3434
}

0 commit comments

Comments
 (0)