Hello,
You need to override the share-header.get.js through an extension module by adding the following code.
function findAndRemoveIn(obj, arrContext, arrIdx, id) {
var idx, max, key;
if (obj !== undefined && obj !== null) {
if (Object.prototype.toString.apply(obj) === "[object Object]") {
if (obj.hasOwnProperty("id") && obj.id === id) {
if (arrContext !== null && arrIdx !== null)
{ arrContext.splice(arrIdx, 1); }
else
{ logger .debug("Unexpected match outside of array structure: " + jsonUtils.toJSONString(obj)); }
} else {
for (key in obj) {
if (obj.hasOwnProperty(key))
{ findAndRemoveIn(obj[key], null, null, id); }
}
}
} else if (Object.prototype.toString.apply(obj) === "[object Array]") {
for (idx = 0, max = obj.length; idx < max; idx++)
{ findAndRemoveIn(obj[idx], obj, idx, id); }
}
}
}
var widget, widgetsToRemove = ["HEADER_TASKS"], idx, max;
for (idx = 0, max = widgetsToRemove.length; idx < max; idx++)
{ findAndRemoveIn(model.jsonModel.widgets, null, null, widgetsToRemove[idx]); }