mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-2059 Few fixes
This commit is contained in:
parent
be2231ce05
commit
2a406ba59e
3 changed files with 9 additions and 7 deletions
|
@ -13,13 +13,13 @@ func (s *service) startLoad(ctx context.Context, spaceID string) (err error) {
|
|||
s.mu.Lock()
|
||||
defer s.mu.Unlock()
|
||||
status := s.getStatus(spaceID)
|
||||
if status.AccountStatus == spaceinfo.AccountStatusDeleted {
|
||||
return ErrSpaceDeleted
|
||||
}
|
||||
// Do nothing if space is already loading
|
||||
if status.LocalStatus != spaceinfo.LocalStatusUnknown {
|
||||
return nil
|
||||
}
|
||||
if status.AccountStatus == spaceinfo.AccountStatusDeleted {
|
||||
return ErrSpaceDeleted
|
||||
}
|
||||
|
||||
exists, err := s.techSpace.SpaceViewExists(ctx, spaceID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue