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

GO-2284 Add sourceObject relation link to new object

This commit is contained in:
kirillston 2023-10-27 20:11:31 +02:00
parent 597030c5e4
commit 09baf1f15d
No known key found for this signature in database
GPG key ID: 88218A7F1109754B

View file

@ -66,7 +66,7 @@ func (t *Template) GetNewPageState(name string) (st *state.State, err error) {
}
st.RemoveDetail(bundle.RelationKeyTargetObjectType.String(), bundle.RelationKeyTemplateIsBundled.String())
st.SetDetail(bundle.RelationKeySourceObject.String(), pbtypes.String(t.Id()))
st.SetDetailAndBundledRelation(bundle.RelationKeySourceObject, pbtypes.String(t.Id()))
// clean-up local details from the template state
st.SetLocalDetails(nil)