File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export interface XMAAttachment extends Attachment {
2626export interface UnavailableXMA extends XMAAttachment {
2727 type : 'UnavailableXMA'
2828 message : string
29+ attach : any
2930}
3031export interface StoryXMA extends XMAAttachment {
3132 type : 'StoryXMA'
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ import vm from 'vm'
1111
1212export default function parseXMAAttachment ( attach : any ) {
1313 attach = attach [ Object . keys ( attach ) [ 0 ] ] . story_attachment
14- if ( ! attach . target ) {
14+ if ( ! attach . target || ! attach . target . __type__ ) {
1515 return {
1616 type : 'UnavailableXMA' ,
17- message : attach . description . text
17+ message : attach . description . text ,
18+ attach
1819 } as UnavailableXMA
1920 }
2021 const type = attach . target . __type__ . name
You can’t perform that action at this time.
0 commit comments