fetching data from last vc in showFillCntentsOfArticle

This commit is contained in:
Abhishek Sinha 2019-12-16 13:40:04 +05:30
parent f26a07c365
commit 685b329f9f

View File

@ -7464,13 +7464,15 @@
}, },
showFullContentOfArticle: function(obj) { showFullContentOfArticle: function(obj) {
let full_data_div = document.getElementById('current_data'); const full_data_div = document.getElementById('current_data');
let full_article_div = document.getElementById('full_article_div'); const full_article_div = document.getElementById('full_article_div');
const articleSubject = floGlobals.appObjects[this.SUBJECT]; const articleSubject = floGlobals.appObjects[this.SUBJECT];
new_entries_array = []; const new_generalData = getNextGeneralData(this.CONTENT_TYPE, floGlobals.vectorClock[this.SUBJECT]);
for(new_data of Object.values(floGlobals.generalData)[0]) { let new_entries_array = [];
for(new_data of new_generalData) {
new_obj = { new_obj = {
content:new_data.message.content, content:new_data.message.content,
content_creator: new_data.message.content_creator, content_creator: new_data.message.content_creator,
@ -7478,7 +7480,7 @@
} }
if(typeof new_data.message.section == "string") { if(typeof new_data.message.section == "string") {
if(typeof new_entries_array[new_data.message.section] !== "object") if(typeof new_entries_array[new_data.message.section] !== "object")
new_entries_array[new_data.message.section] = []; new_entries_array[new_data.message.section] = [];
new_entries_array[new_data.message.section].push(new_obj); new_entries_array[new_data.message.section].push(new_obj);
} }
} }