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

GO-2047 Remove DeleteEmpty on SetText

This commit is contained in:
kirillston 2023-11-17 14:20:59 +01:00
parent bf8b70643a
commit 5d3831a48f
No known key found for this signature in database
GPG key ID: 88218A7F1109754B
3 changed files with 26 additions and 21 deletions

View file

@ -57,6 +57,10 @@ func (s Set) AddToState(st *state.State) {
st.SetDetailAndBundledRelation(relationKey, pbtypes.IntList(s.flags...))
}
func (s Set) IsEmpty() bool {
return len(s.flags) == 0
}
func PutToDetails(details *types.Struct, flags []*model.InternalFlag) *types.Struct {
ints := make([]int, 0, len(flags))
for _, f := range flags {