Skip to content

Commit

Permalink
feat: add ticket dom
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasen-Zhang committed Dec 16, 2024
1 parent e67914c commit 7673447
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "databend-profile-ui",
"version": "0.0.29",
"version": "0.0.30",
"description": "A react library developed with dumi",
"license": "MIT",
"module": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/QueryProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ interface IProps {
isNeedMetrics?: boolean;
isDemo?: boolean;
isLight?: boolean;
ErrorTicketDom?: ReactElement;
}
interface IStatisticsDesc {
_type: string;
Expand Down Expand Up @@ -116,6 +117,7 @@ const QueryProfile: FC<IProps> = ({
isNeedMetrics = false,
isDemo = false,
isLight = true,
ErrorTicketDom = <></>,
}): ReactElement => {
const [graphSize, setGraphSize] = useSafeState(0);
const profileWrapRefCanvas = useRef(null);
Expand Down Expand Up @@ -489,6 +491,7 @@ const QueryProfile: FC<IProps> = ({
>
<div className="profile-common-styles-few g-color-text-danger">
{'Errors'}
{ErrorTicketDom && ErrorTicketDom}
</div>
{overviewInfo?.errors?.map((error, index) => {
return (
Expand Down

0 comments on commit 7673447

Please sign in to comment.