Skip to content

Commit f4ef064

Browse files
committed
tentative flag
1 parent 1571c0d commit f4ef064

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

apps/roam/src/utils/createReifiedBlock.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,21 @@ export const createReifiedRelation = async ({
136136
sourceUid,
137137
relationBlockUid,
138138
destinationUid,
139+
tentative,
139140
}: {
140141
sourceUid: string;
141142
relationBlockUid: string;
142143
destinationUid: string;
144+
tentative?: boolean;
143145
}): Promise<string> => {
146+
const parameterUids: Record<string, string> = {
147+
sourceUid,
148+
destinationUid,
149+
};
150+
if (tentative !== undefined) parameterUids.tentative = tentative.toString();
144151
return await createReifiedBlock({
145152
destinationBlockUid: await getOrCreateRelationPageUid(),
146153
schemaUid: relationBlockUid,
147-
parameterUids: {
148-
sourceUid,
149-
destinationUid,
150-
},
154+
parameterUids,
151155
});
152156
};

apps/roam/src/utils/importSharedRelations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ const importRelations = async (
180180
sourceUid,
181181
destinationUid,
182182
relationBlockUid,
183+
tentative: true,
183184
});
184185
await writeImportedSourceIdentity({
185186
pageUid: uid,

0 commit comments

Comments
 (0)