mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-07 21:37:04 +09:00
GO-5172 Unset internalFlags instead of deletion
This commit is contained in:
parent
05e5843426
commit
32981e9a0d
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func (s *Set) Remove(flag model.InternalFlagValue) {
|
|||
|
||||
func (s *Set) AddToState(st *state.State) {
|
||||
if len(s.flags) == 0 {
|
||||
st.RemoveDetail(relationKey)
|
||||
st.SetDetailAndBundledRelation(relationKey, domain.Float64List([]float64{}))
|
||||
return
|
||||
}
|
||||
st.SetDetailAndBundledRelation(relationKey, domain.Float64List(s.flags))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue