fix: removes error count form widget name component (#24653)

Removes the error count form the widget name
This commit is contained in:
Aswath K 2023-07-05 11:34:09 +05:30 committed by GitHub
parent 82f1624f59
commit b48e339212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -17,8 +17,6 @@ describe("Widget error state", function () {
cy.testJsontext("visible", "Test");
cy.contains(".t--widget-error-count", 1);
//Check if the current value is shown in the debugger
_.debuggerHelper.ClickDebuggerIcon();

View File

@ -131,12 +131,7 @@ export function SettingsControl(props: SettingsControlProps) {
style={getStyles(props.activity, props.errorCount, isSnipingMode)}
widgetWidth={props.widgetWidth}
>
{!!props.errorCount && !isSnipingMode && (
<>
{errorIcon}
<span className="t--widget-error-count">{props.errorCount}</span>
</>
)}
{!!props.errorCount && !isSnipingMode && errorIcon}
{isSnipingMode && (
<Icon
color="var(--ads-v2-color-white)"