Commit d7a5d5b6 authored by Tim Zallmann's avatar Tim Zallmann

Removed the testing console.log's

parent 53def4e2
......@@ -128,7 +128,6 @@ export default {
() => {
this.startRenderDiffsQueue()
.then(() => {
console.log('Done rendering Que');
requestIdleCallback(
() => {
this.assignDiscussionsToDiff(this.discussionsStructuredByLineCode);
......
......@@ -90,10 +90,7 @@ export default {
this.refetchDiscussionById({ path: endpoint, discussionId: result.discussion_id })
.then(selectedDiscussion => {
//debugger;
console.log('SEL DISCUSSION: ', selectedDiscussion);
const lineCodeDiscussions = utils.reduceDiscussionsToLineCodes([selectedDiscussion]);
console.log('LINE CODE DISCUSSIONS: ', lineCodeDiscussions);
this.assignDiscussionsToDiff(lineCodeDiscussions);
this.handleCancelCommentForm();
......
......@@ -61,7 +61,6 @@ export default {
},
},
created() {
// console.log('LINE : ', this.line);
this.newLineType = NEW_LINE_TYPE;
this.oldLineType = OLD_LINE_TYPE;
this.parallelDiffViewType = PARALLEL_DIFF_VIEW_TYPE;
......
......@@ -30,16 +30,10 @@ export const fetchDiffFiles = ({ state, commit }) => {
};
export const assignDiscussionsToDiff = ({ state }, allLineDiscussions) => {
console.log('ASSIGN DISCS : ');
console.log('DIFF : ', state.diffFiles);
console.log('STATE : ', allLineDiscussions);
Object.values(allLineDiscussions).forEach(discussions => {
if (discussions.length > 0) {
console.log('KE : ', discussions);
const fileHash = discussions[0].fileHash;
const selectedFile = state.diffFiles.find(file => file.fileHash === fileHash);
console.log('FILE : ', selectedFile);
if (selectedFile) {
const targetLine = selectedFile.parallelDiffLines.find(line => {
return (
......@@ -49,7 +43,6 @@ export const assignDiscussionsToDiff = ({ state }, allLineDiscussions) => {
});
if (targetLine) {
console.log('TARGET LINE : ', targetLine);
Object.assign(targetLine.right, { discussions });
}
}
......@@ -77,7 +70,6 @@ export const startRenderDiffsQueue = ({ state, commit }) => {
{ timeout: 1000 },
);
} else {
console.log('No more items found -> Done');
resolve();
}
});
......
Markdown is supported
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