We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b73ab5a commit 6413359Copy full SHA for 6413359
microservices/content/src/helpers/replace-entities.ts
@@ -7,7 +7,7 @@ const replaceEntities = <TEntity = unknown>(
7
updatedEntities: Record<string, TEntity>[],
8
isShouldRemoveNotMatchingRecord = true,
9
): Record<string, TEntity | unknown>[] => {
10
- if (!updatedEntities.length || !originalEntities.length) {
+ if (!updatedEntities?.length || !originalEntities?.length) {
11
return originalEntities;
12
}
13
0 commit comments