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:
parent
bf8b70643a
commit
5d3831a48f
3 changed files with 26 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue