1
0
Fork 0
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:
kirillston 2025-04-02 17:49:09 +03:00
parent 05e5843426
commit 32981e9a0d
No known key found for this signature in database
GPG key ID: BE4BF014F0ECDFE8

View file

@ -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))