mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
fix
This commit is contained in:
parent
2b718e49e6
commit
798db06138
1 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,7 @@ const (
|
|||
|
||||
migrationUseCase = -1
|
||||
migrationDashboardName = "bafyreiha2hjbrzmwo7rpiiechv45vv37d6g5aezyr5wihj3agwawu6zi3u"
|
||||
defaultDashboardId = "lastOpened"
|
||||
|
||||
contentLengthHeader = "Content-Length"
|
||||
archiveDownloadingPercents = 30
|
||||
|
@ -316,6 +317,13 @@ func (b *builtinObjects) handleHomePage(profile *pb.Profile, spaceId string, isM
|
|||
oldID := migrationDashboardName
|
||||
if !isMigration && profile != nil {
|
||||
oldID = profile.SpaceDashboardId
|
||||
if oldID == "" {
|
||||
oldID = defaultDashboardId
|
||||
}
|
||||
}
|
||||
|
||||
if oldID == defaultDashboardId {
|
||||
return oldID
|
||||
}
|
||||
|
||||
newID, err := b.getNewObjectID(spaceId, oldID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue