UNPKG

@progress/kendo-angular-gantt

Version:
16 lines (15 loc) 719 B
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * @hidden */ export const getEditItem = (dataItem, data, mapper) => { const treeListDataItem = data.find(item => mapper.extractFromTask(item.data, 'id') === mapper.extractFromTask(dataItem, 'id')); return mapPath(treeListDataItem); }; const mapPath = (item) => ({ dataItem: item.data, parent: item.parent.data ? mapPath(item.parent) : null });