Skip to content

Commit

Permalink
minor fix for save tag
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Sep 11, 2024
1 parent b9a4439 commit aa3604a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/sentence/TagsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import { mapActions, mapState, mapWritableState } from 'pinia';
import { grewSearchResultSentence_t } from 'src/api/backend-types';
import { useUserStore } from 'src/pinia/modules/user';
import { reactive_sentences_obj_t, sentence_bus_t } from 'src/types/main_types';
import { notifyError, notifyMessage } from 'src/utils/notify';
import { notifyError } from 'src/utils/notify';
import { PropType, defineComponent } from 'vue';
import { useProjectStore } from 'src/pinia/modules/project';
import { tag_t, useTagsStore } from 'src/pinia/modules/tags';
Expand Down Expand Up @@ -117,11 +117,7 @@ export default defineComponent({
methods: {
...mapActions(useTagsStore, ['getUserTags']),
addNewTag() {
const metaToReplace = {
timestamp: Math.round(Date.now()),
};
const conll = this.reactiveSentencesObj[this.openTabUser].exportConllWithModifiedMeta(metaToReplace);
const data = { tags: this.tags, tree: conll };
const data = { tags: this.tags, tree: this.sentence.conlls[this.openTabUser] };
api
.addTags(this.name, this.sampleName, data)
.then((response) => {
Expand Down

0 comments on commit aa3604a

Please sign in to comment.