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:
parent
597030c5e4
commit
09baf1f15d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue