From af875b6ec0a883e40658540c3f822fac3a2a49e2 Mon Sep 17 00:00:00 2001 From: Dhananjay Kuber Date: Thu, 13 Feb 2025 13:58:30 +0530 Subject: [PATCH] refactor: Simplify avatar rendering logic by removing conditional link wrapper in editor --- packages/block-library/src/avatar/edit.js | 30 ++++++----------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/packages/block-library/src/avatar/edit.js b/packages/block-library/src/avatar/edit.js index 8309bc5e878a0e..7e760bd9e0c8ff 100644 --- a/packages/block-library/src/avatar/edit.js +++ b/packages/block-library/src/avatar/edit.js @@ -193,29 +193,13 @@ const UserEdit = ( { attributes, context, setAttributes, isSelected } ) => { avatar={ avatar } setAttributes={ setAttributes } /> - { attributes.isLink ? ( - event.preventDefault() } - > - - - ) : ( - - ) } + ); };