We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb1fd8a commit 5423f04Copy full SHA for 5423f04
1 file changed
apps/obsidian/src/utils/publishNode.ts
@@ -395,7 +395,7 @@ export const ensurePublishedRelationsAccuracy = async ({
395
const rel = relationInstancesData.relations[record.source_local_id];
396
const group = record.account_uid;
397
const pos = (rel?.publishedToGroupId || []).indexOf(group);
398
- if (rel && pos < 1) {
+ if (rel && pos < 0) {
399
if (rel.publishedToGroupId === undefined) rel.publishedToGroupId = [];
400
rel.publishedToGroupId.push(group);
401
changed = true;
0 commit comments