Fixed bug deleting pages
This commit is contained in:
parent
04424b4abb
commit
0bf60429ec
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue