Skip to content

Commit

Permalink
Merge pull request #25525 from mshima/fix-warning
Browse files Browse the repository at this point in the history
ignore addEntitiesOtherRelationships for builtIn entities
  • Loading branch information
DanielFran committed Mar 18, 2024
2 parents fa80e56 + efddac4 commit c7deaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/server/support/relationship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ValidationResult } from '../../base/api.js';
// eslint-disable-next-line import/prefer-default-export
export const addEntitiesOtherRelationships = (entities: Entity[]): ValidationResult => {
const result: { warning: string[] } = { warning: [] };
for (const entity of entities) {
for (const entity of entities.filter(entity => !entity.builtIn)) {
for (const relationship of entity.relationships ?? []) {
if (
!relationship.otherRelationship &&
Expand Down

0 comments on commit c7deaad

Please sign in to comment.