File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ import MarkdownIt from 'markdown-it'
80
80
import { copyToClipboard } from 'src/annotations/content_script/utils'
81
81
import Raven from 'raven-js'
82
82
import analytics from 'src/analytics'
83
+ import { processCommentForImageUpload } from '@worldbrain/memex-common/lib/annotations/processCommentForImageUpload'
83
84
84
85
type EventHandler < EventName extends keyof Events > = UIEventHandler <
85
86
State ,
@@ -4798,13 +4799,23 @@ export class DashboardLogic extends UILogic<State, Events> {
4798
4799
source : 'updateSelectedListDescription' ,
4799
4800
} )
4800
4801
4802
+ let processedDescription = (
4803
+ await processCommentForImageUpload (
4804
+ event . description ,
4805
+ null ,
4806
+ null ,
4807
+ this . options . imageSupportBG ,
4808
+ false ,
4809
+ )
4810
+ ) . toString ( )
4811
+
4801
4812
this . options . annotationsCache . updateList ( {
4802
4813
unifiedId : selectedListId ,
4803
- description : event . description ,
4814
+ description : processedDescription ,
4804
4815
} )
4805
4816
4806
4817
await this . options . listsBG . updateListDescription ( {
4807
- description : event . description ,
4818
+ description : processedDescription ,
4808
4819
listId : listData . localId ! ,
4809
4820
} )
4810
4821
}
You can’t perform that action at this time.
0 commit comments