Skip to content
Snippets Groups Projects
Commit b9240de8 authored by chris's avatar chris
Browse files

cleanup CommentState

parent 08dc6a6d
No related branches found
No related tags found
No related merge requests found
Pipeline #59990 passed with stages
in 3 minutes and 18 seconds
...@@ -45,6 +45,7 @@ import CharactersList from './CharactersList'; ...@@ -45,6 +45,7 @@ import CharactersList from './CharactersList';
// const updateTitle = title => { // const updateTitle = title => {
// console.log(title); // console.log(title);
// }; // };
console.log('in config');
async function DummyPromise(userInput) { async function DummyPromise(userInput) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -289,7 +290,7 @@ export default { ...@@ -289,7 +290,7 @@ export default {
ImageService: { showAlt: true }, ImageService: { showAlt: true },
CommentsService: { CommentsService: {
showTitle: false, showTitle: true,
getComments, getComments,
setComments, setComments,
}, },
......
...@@ -211,7 +211,7 @@ export default class CommentState { ...@@ -211,7 +211,7 @@ export default class CommentState {
return this; return this;
// eslint-disable-next-line no-else-return // eslint-disable-next-line no-else-return
} else { } else {
this.options.map.forEach((annotation, _) => { map.forEach((annotation, _) => {
if ('from' in annotation && 'to' in annotation) { if ('from' in annotation && 'to' in annotation) {
annotation.from = transaction.mapping.map(annotation.from); annotation.from = transaction.mapping.map(annotation.from);
annotation.to = transaction.mapping.map(annotation.to); annotation.to = transaction.mapping.map(annotation.to);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment