You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a persistent and unavoidable error when DB response is null. In a typical usage of the addon, not all attachment column will return the expected format which is parse-able by the add-on. Some columns will contain null values. The add-on current fails when null values are encountered.
Prerequisites
I've noticed a persistent and unavoidable error when DB response is
null
. In a typical usage of the addon, not all attachment column will return the expected format which is parse-able by the add-on. Some columns will containnull
values. The add-on current fails whennull
values are encountered.The issue can be traced to these lines:
attachment-lite/src/Attachment/index.ts
Lines 64 to 75 in 4f05e55
When
attributes
isnull
, theArray.forEach
call fails. A suggestion is for the add-on to provide ano-op
whennull
is encountered.Package version
1.0.1
Node.js and npm version
Node: 14.18.2. NPM: 6.14.15
Sample Code (to reproduce the issue)
attachment-lite/src/Attachment/index.ts
Lines 64 to 75 in 4f05e55
BONUS (a sample repo to reproduce the issue)
The text was updated successfully, but these errors were encountered: