From 4003a7d418f293f5e22e91bd7dbc54e84b658a69 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 28 Mar 2024 15:25:34 +0400 Subject: [PATCH] Don't add 'wp-social-link-undefined' class --- packages/block-library/src/social-link/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/social-link/edit.js b/packages/block-library/src/social-link/edit.js index 37e8a942262e58..9cd5479182a774 100644 --- a/packages/block-library/src/social-link/edit.js +++ b/packages/block-library/src/social-link/edit.js @@ -119,7 +119,8 @@ const SocialLinkEdit = ( { iconBackgroundColor, iconBackgroundColorValue, } = context; - const classes = clsx( 'wp-social-link', 'wp-social-link-' + service, { + const classes = clsx( 'wp-social-link', { + [ `wp-social-link-${ service }` ]: !! service, 'wp-social-link__is-incomplete': ! url, [ `has-${ iconColor }-color` ]: iconColor, [ `has-${ iconBackgroundColor }-background-color` ]: