Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
257
Merge Requests
12
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
fbd585573dc7f731366762b49c7ce0bb5eee6cfe...22f4360e0a11409a6a63f5edd9afabf958ddd94f
Source
22f4360e0a11409a6a63f5edd9afabf958ddd94f
...
Target
fbd585573dc7f731366762b49c7ce0bb5eee6cfe
Compare
Commits (2)
(fix) check if localEntities is not null
· 59d94d2c
Juan Manuel Solaro
authored
4 hours ago
59d94d2c
Merge branch 'fix-null-is-not-an-object-in-entities-service' into 'release/3.12.0'
· 22f4360e
Martin Santangelo
authored
2 hours ago
Fix null is not an object in entities service See merge request
!420
22f4360e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/common/services/entities.service.js
View file @
22f4360e
...
...
@@ -109,7 +109,12 @@ class EntitiesService {
// if we have urnsToFetch we try to load from the sql storage first
if
(
urnsToFetch
.
length
>
0
)
{
const
localEntities
=
await
entitiesStorage
.
readMany
(
urnsToFetch
);
urnsToFetch
=
_
.
difference
(
urnsToFetch
,
localEntities
.
map
((
m
:
any
):
string
=>
m
.
urn
));
if
(
localEntities
)
{
urnsToFetch
=
_
.
difference
(
urnsToFetch
,
localEntities
.
map
((
m
:
any
):
string
=>
m
.
urn
),
);
}
// we add to resync list
localEntities
.
forEach
((
entity
:
any
)
=>
{
urnsToResync
.
push
(
entity
.
urn
);
...
...
This diff is collapsed.