修复可能出现移动或者创建环境变量出错

This commit is contained in:
whyour 2022-11-05 16:41:19 +08:00
parent b31b054d0c
commit 8ac3f83c79

View File

@ -103,7 +103,7 @@ export default class EnvService {
let position = initPosition; let position = initPosition;
for (const env of envs) { for (const env of envs) {
position = position - stepPosition; position = position - stepPosition;
await this.updateDb({ ...env, position }); await this.updateDb({ id: env.id, position });
} }
} }
} }