diff --git a/scripts/extensions/auto-tagging-widget/src/auto-tagging.tsx b/scripts/extensions/auto-tagging-widget/src/auto-tagging.tsx index 3ac72fe2fa..1161c4de33 100644 --- a/scripts/extensions/auto-tagging-widget/src/auto-tagging.tsx +++ b/scripts/extensions/auto-tagging-widget/src/auto-tagging.tsx @@ -189,6 +189,9 @@ export function getAutoTaggingComponent(superdesk: ISuperdesk, label: string) { this.setState({data: 'loading'}, () => { const {guid, language, headline, body_html, abstract} = this.props.article; + const tags = dataBeforeLoading !== 'not-initialized' && dataBeforeLoading !== 'loading' ? + dataBeforeLoading.changes.analysis : + OrderedMap(); httpRequestJsonLocal<{analysis: IServerResponse}>({ method: 'POST', @@ -202,6 +205,7 @@ export function getAutoTaggingComponent(superdesk: ISuperdesk, label: string) { body_html, abstract, }, + tags: toServerFormat(tags, superdesk), }, }).then((res) => { const resClient = toClientFormat(res.analysis);