1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00

GO-5434 Fix collection on MD import

This commit is contained in:
kirillston 2025-06-06 19:32:03 +02:00
parent bbfccd43f5
commit 4fa585db11
No known key found for this signature in database
GPG key ID: BE4BF014F0ECDFE8

View file

@ -381,14 +381,6 @@ func (oc *ObjectCreator) resetState(newID string, st *state.State) *domain.Detai
if err != nil {
log.With(zap.String("object id", newID)).Errorf("failed to set state %s: %s", newID, err)
}
commonOperations, ok := b.(basic.CommonOperations)
if !ok {
return nil
}
err = commonOperations.FeaturedRelationAdd(nil, bundle.RelationKeyType.String())
if err != nil {
log.With(zap.String("object id", newID)).Errorf("failed to set featuredRelations %s: %s", newID, err)
}
respDetails = b.CombinedDetails()
return nil
})