Skip to content

Commit 8707ee5

Browse files
committed
add check to see if sync is empty
1 parent ea8f05f commit 8707ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/ui/component/class-sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function status( $struct ) {
4545
$icon = 'dashicons-yes-alt';
4646
$state_text = __( 'All assets are synced', 'cloudinary' );
4747

48-
if ( $this->setting->get_param( 'queue' )->is_enabled() ) {
48+
if ( ! empty( $to_sync ) && $this->setting->get_param( 'queue' )->is_enabled() ) {
4949
$state = 'notification-syncing';
5050
$icon = 'dashicons-update';
5151
$state_text = __( 'Syncing now', 'cloudinary' );

0 commit comments

Comments
 (0)