diff --git a/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.js b/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.js index 8ee7b630d8..75162c6897 100644 --- a/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.js +++ b/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.js @@ -19,7 +19,7 @@ const TextFromSubject = types return { updateFromSubject (value) { self.initializedFromSubject = true - self.update(value) + self.value = value } } }) diff --git a/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.spec.js b/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.spec.js index 0ee069321c..4451dd5342 100644 --- a/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.spec.js +++ b/packages/lib-classifier/src/plugins/tasks/experimental/textFromSubject/models/TextFromSubjectAnnotation.spec.js @@ -87,6 +87,10 @@ describe('Model > TextFromSubjectAnnotation', function () { it('should have initializedFromSubject of true', function () { expect(textFromSubjectAnnotation.initializedFromSubject).to.be.true() }) + + it('should not be marked as modified', function () { + expect(textFromSubjectAnnotation._inProgress).to.be.false() + }) }) describe('with initial update from subject content and valid update from user', function () {