Skip to content

Commit

Permalink
fix: 修复中途s clean造成的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Joycepy committed Aug 24, 2022
1 parent cf54f23 commit bd28d5d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
104 changes: 52 additions & 52 deletions dist/index.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export async function getDiff(application: any, slb: any, remoteData: any, crede
// lastDeploy == localApp && remoteApp != localApp ----> 用户选择local或remote
// lastDeploy != localApp ----> 自动选择local
const lastDeploy = await getDeployCache(credentials.AccountID, localApp.region, localApp.appName, configPath);
if(!lodash.isEqual(lastDeploy.props.application, application) || !lodash.isEqual(lastDeploy.props.slb, slb)){
if(!lodash.isEqual(lastDeploy?.props?.application, application) || !lodash.isEqual(lastDeploy?.props?.slb, slb)){
change.updateRemote = true;
}else{
const configInquire = getInquire(application.appName);
Expand Down

0 comments on commit bd28d5d

Please sign in to comment.