Fix metadata spinner not closing when 0 items on clipboard.

This commit is contained in:
voussoir 2020-05-28 19:02:07 -07:00
parent 2f5510fd0c
commit 634f6f5188

View file

@ -326,7 +326,10 @@ function refresh_metadata_callback(response)
function refresh_metadata_form()
{
if (photo_clipboard.clipboard.size == 0)
{return;}
{
window[refresh_metadata_button.dataset.spinnerCloser]();
return;
}
var url = "/batch/photos/refresh_metadata";
var photo_ids = Array.from(photo_clipboard.clipboard).join(",");