Skip to content

Commit 6413359

Browse files
fix(content): empty relations values #3
1 parent b73ab5a commit 6413359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microservices/content/src/helpers/replace-entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const replaceEntities = <TEntity = unknown>(
77
updatedEntities: Record<string, TEntity>[],
88
isShouldRemoveNotMatchingRecord = true,
99
): Record<string, TEntity | unknown>[] => {
10-
if (!updatedEntities.length || !originalEntities.length) {
10+
if (!updatedEntities?.length || !originalEntities?.length) {
1111
return originalEntities;
1212
}
1313

0 commit comments

Comments
 (0)