Skip to content

Commit 59d83be

Browse files
authored
chore: remove array ref in warning (#2449)
1 parent 5234527 commit 59d83be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composition-go/index.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composition/src/v1/normalization/normalization-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3683,7 +3683,7 @@ export class NormalizationFactory {
36833683
this.isSubgraphVersionTwo
36843684
? this.errors.push(externalInterfaceFieldsError(parentTypeName, externalInterfaceFieldNames))
36853685
: this.warnings.push(
3686-
externalInterfaceFieldsWarning(this.subgraphName, parentTypeName, externalInterfaceFieldNames),
3686+
externalInterfaceFieldsWarning(this.subgraphName, parentTypeName, [...externalInterfaceFieldNames]),
36873687
);
36883688
}
36893689
const newParentTypeName = getParentTypeName(parentData);

composition/src/v1/warnings/warnings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SingleFederatedInputFieldOneOfWarningParams, SingleSubgraphInputFieldOn
55
export function invalidOverrideTargetSubgraphNameWarning(
66
targetSubgraphName: string,
77
parentTypeName: string,
8-
fieldNames: string[],
8+
fieldNames: Array<string>,
99
originSubgraphName: string,
1010
): Warning {
1111
return new Warning({

0 commit comments

Comments
 (0)