forked from organicmaps/organicmaps-tmp
[bookmarks] do not send request to delete for empty list of guides
This commit is contained in:
parent
906ae3b05c
commit
766c17ae1a
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ void BookmarkCatalog::RequestBookmarksToDelete(std::string const & accessToken,
|
|||
BookmarksToDeleteCallback && callback) const
|
||||
{
|
||||
auto const url = BuildDeleteRequestUrl();
|
||||
if (url.empty())
|
||||
if (url.empty() || serverIds.empty())
|
||||
{
|
||||
if (callback)
|
||||
callback({});
|
||||
|
|
Loading…
Add table
Reference in a new issue