File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/core/src/lambda/remoteDebugging Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,11 @@ export class LdkClient {
366366 }
367367
368368 if ( check ) {
369- if ( ( await this . getFunctionDetail ( config . FunctionArn ) ) === config ) {
369+ const currentConfig = await this . getFunctionDetail ( config . FunctionArn )
370+ if (
371+ currentConfig ?. Timeout === config ?. Timeout &&
372+ currentConfig ?. Layers ?. length === config ?. Layers ?. length
373+ ) {
370374 // nothing to remove
371375 return true
372376 }
Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ export async function revertExistingConfig(): Promise<boolean> {
112112
113113 if (
114114 currentConfig ?. Timeout === savedConfig ?. Timeout &&
115- currentConfig ?. Layers ?. length === savedConfig ?. Layers ?. length &&
116- currentConfig ?. Environment === savedConfig ?. Environment
115+ currentConfig ?. Layers ?. length === savedConfig ?. Layers ?. length
117116 ) {
118117 // No changes needed, remove the snapshot
119118 void ( await persistLambdaSnapshot ( undefined ) )
You can’t perform that action at this time.
0 commit comments