We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4376f4 commit 4a4305dCopy full SHA for 4a4305d
src/commands/RemoveMigrationsCommand.ts
@@ -28,7 +28,7 @@ export class RemoveMigrationsCommand extends Command {
28
this.item.dbContext,
29
),
30
);
31
- const index = migrations?.indexOf(this.item) || -1;
+ const index = (migrations || []).indexOf(this.item);
32
if (index === -1) {
33
return;
34
}
0 commit comments