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

Integrate: fixes

This commit is contained in:
Sergey 2024-08-01 10:51:27 +02:00
parent 4deeea4f9b
commit 99680e4f34
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
14 changed files with 79 additions and 80 deletions

View file

@ -6,6 +6,7 @@ import (
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
"github.com/anyproto/anytype-heart/util/pbtypes"
"github.com/anyproto/anytype-heart/util/slice"
)
const relationKey = bundle.RelationKeyInternalFlags
@ -18,7 +19,7 @@ func NewFromState(st *state.State) *Set {
flags := st.Details().GetFloatListOrDefault(relationKey, nil)
return &Set{
flags: flags,
flags: slice.FloatsInto[int](flags),
}
}