We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Topic.IsNew
1 parent 68fa02b commit 94f1efcCopy full SHA for 94f1efc
OnTopic.Data.Transfer/Interchange/TopicExtensions.cs
@@ -451,7 +451,7 @@ bool useCustomMergeRules(AttributeData attribute) =>
451
private static string? GetTopicId(Topic topic, string? uniqueKey) {
452
if (uniqueKey!.StartsWith("Root", StringComparison.InvariantCultureIgnoreCase)) {
453
var target = topic.GetByUniqueKey(uniqueKey);
454
- if (target != null && target.Id >= 0) {
+ if (target != null && !target.IsNew) {
455
return target.Id.ToString(CultureInfo.CurrentCulture);
456
}
457
else {
0 commit comments