Open LorisSigrist opened 2 months ago
project.query.message.getAll() sometimes returns undefined instead of a message array. This isn't reflected in the types.
project.query.message.getAll()
undefined
The most likely cause is that the messages get queried before they are properly loaded & thus the query returns an uninitialized value.
This caused PARJS-57
Either block until the messages are fully loaded before responding to the query, or return an empty array.
same as MESDK-37 / #2
Context/Problem
project.query.message.getAll()
sometimes returnsundefined
instead of a message array. This isn't reflected in the types.The most likely cause is that the messages get queried before they are properly loaded & thus the query returns an uninitialized value.
This caused PARJS-57
Proposal
Either block until the messages are fully loaded before responding to the query, or return an empty array.