diff --git a/code/addons/interactions/src/Panel.tsx b/code/addons/interactions/src/Panel.tsx
index 490d1df1564c..f6e1b06b8619 100644
--- a/code/addons/interactions/src/Panel.tsx
+++ b/code/addons/interactions/src/Panel.tsx
@@ -180,13 +180,13 @@ export const Panel = memo<{ storyId: string }>(function PanelMemoized({ storyId
});
},
[STORY_THREW_EXCEPTION]: () => {
- set((s) => ({ ...s, isErrored: true }));
+ set((s) => ({ ...s, isErrored: true, hasException: true }));
},
[PLAY_FUNCTION_THREW_EXCEPTION]: (e) => {
- set((s) => ({ ...s, caughtException: e }));
+ set((s) => ({ ...s, caughtException: e, hasException: true }));
},
[UNHANDLED_ERRORS_WHILE_PLAYING]: (e) => {
- set((s) => ({ ...s, unhandledErrors: e }));
+ set((s) => ({ ...s, unhandledErrors: e, hasException: true }));
},
},
[collapsed]
diff --git a/code/addons/interactions/src/components/TabStatus.tsx b/code/addons/interactions/src/components/TabStatus.tsx
deleted file mode 100644
index fc2390b5c823..000000000000
--- a/code/addons/interactions/src/components/TabStatus.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import { styled } from 'storybook/internal/theming';
-
-import { StatusIcon } from './StatusIcon';
-
-export const TabIcon = styled(StatusIcon)({
- marginLeft: 5,
-});
diff --git a/code/addons/interactions/src/manager.tsx b/code/addons/interactions/src/manager.tsx
index 88b20d1d8bb1..2de5d48d8fa6 100644
--- a/code/addons/interactions/src/manager.tsx
+++ b/code/addons/interactions/src/manager.tsx
@@ -2,10 +2,8 @@ import React, { useCallback } from 'react';
import type { Combo } from 'storybook/internal/manager-api';
import { addons, Consumer, types, useAddonState } from 'storybook/internal/manager-api';
import { AddonPanel, Badge, Spaced } from 'storybook/internal/components';
-import { CallStates } from '@storybook/instrumenter';
import { ADDON_ID, PANEL_ID } from './constants';
import { Panel } from './Panel';
-import { TabIcon } from './components/TabStatus';
function Title() {
const [addonState = {}] = useAddonState(ADDON_ID);
@@ -18,7 +16,7 @@ function Title() {
{interactionsCount && !hasException ? (
{interactionsCount}
) : null}
- {hasException ? : null}
+ {hasException ? {interactionsCount} : null}
);