Fixed bug deleting pages

This commit is contained in:
tyler 2024-06-01 13:31:06 -04:00
parent 04424b4abb
commit 0bf60429ec

View file

@ -899,7 +899,7 @@ func (a *App) deletePage(pi PageInfo) error {
defer a.pagesMu.Unlock() defer a.pagesMu.Unlock()
page, exists := a.pages[*name] page, exists := a.pages[*name]
if !exists { if !exists {
return fmt.Errorf("page does not exist") return nil
} }
page.activeMu.Lock() page.activeMu.Lock()