MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / buildCreationBlockingUpdates

Function buildCreationBlockingUpdates

src/modals/taskCreationData.ts:94–113  ·  view source on GitHub ↗
(
	blockingItems: DependencyItem[]
)

Source from the content-addressed store, hash-verified

92}
93
94export function buildCreationBlockingUpdates(
95 blockingItems: DependencyItem[]
96): CreationBlockingUpdates {
97 const added: string[] = [];
98 const raw: Record<string, TaskDependency> = {};
99 const unresolved: string[] = [];
100
101 blockingItems.forEach((item) => {
102 if (item.path) {
103 if (!added.includes(item.path)) {
104 added.push(item.path);
105 raw[item.path] = { ...item.dependency };
106 }
107 } else {
108 unresolved.push(item.dependency.uid);
109 }
110 });
111
112 return { added, raw, unresolved };
113}

Callers 1

handleSaveMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected