Skip to content

Commit

Permalink
fix: add plugin type check
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golovanov committed Dec 5, 2024
1 parent 9fe13c3 commit 89ee20e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ export function Response(props: ResponseProps) {
return { currentContentType, contentTypeOptions };
}, [responseDisplayFormat, responseDataTypes]);

const showRecordCount = actionResponse?.dataTypes?.some(
({ dataType }) => dataType === "TABLE",
);
const showRecordCount =
action.pluginType === PluginType.DB ||
actionResponse?.dataTypes?.some(({ dataType }) => dataType === "TABLE");

const tooltipContent = useMemo(() => {
if (actionResponse) {
Expand Down

0 comments on commit 89ee20e

Please sign in to comment.