Skip to content

Commit

Permalink
fix: ignore empty plugins on local resource (api7#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 authored Apr 24, 2024
1 parent 89e4e08 commit 9ae0700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/cli/src/differ/differv3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,9 @@ export class DifferV3 {
'plugins' in remoteItem ? (remoteItem.plugins as ADCSDK.Plugins) : {},
);

//@ts-expect-error it has been asserted that the resource type can contain the plugins field
mergedLocalItem.plugins = mergedLocalPlugins;
if (!isEmpty(mergedLocalPlugins))
//@ts-expect-error it has been asserted that the resource type can contain the plugins field
mergedLocalItem.plugins = mergedLocalPlugins;

// The cache is used to output the old and new values of the diff report.
// They are characterized by the fact that they do not contain subresources
Expand Down

0 comments on commit 9ae0700

Please sign in to comment.