Skip to content

Commit

Permalink
fix: bugs (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
mizy authored Jan 15, 2024
1 parent 6eb62b5 commit 332c16e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 30 deletions.
17 changes: 5 additions & 12 deletions app/pages/Console/OutputBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ const OutputBox = (props: IProps) => {
};

const resultSuccess = code === 0;
const explainData = useMemo(() => {
return dataSource?.map((item) => convertExplainData(item));
}, [dataSource]);
const items = useMemo(() => {
const isDot = data.headers[0] === 'format';
const isExplainRaw =
Expand Down Expand Up @@ -274,12 +277,7 @@ const OutputBox = (props: IProps) => {
{intl.get('console.planTree')}
</>
),
children: (
<Explain
style={{ height: fullscreen ? window.innerHeight - 190 : 300 }}
data={dataSource.map((item) => convertExplainData(item))}
/>
),
children: <Explain style={{ height: fullscreen ? window.innerHeight - 190 : 300 }} data={explainData} />,
},

resultSuccess &&
Expand All @@ -291,12 +289,7 @@ const OutputBox = (props: IProps) => {
{intl.get('console.planTree')}
</>
),
children: (
<Explain
style={{ height: fullscreen ? window.innerHeight - 190 : 300 }}
data={dataSource.map((item) => convertExplainData(item))}
/>
),
children: <Explain style={{ height: fullscreen ? window.innerHeight - 190 : 300 }} data={explainData} />,
},
showGraph && {
key: 'graph',
Expand Down
1 change: 0 additions & 1 deletion app/pages/SketchModeling/Plugins/SketchShapes/Path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ const Path: LineRender = {
width={width}
height={20}
textAnchor="middle"
// eslint-disable-next-line react/no-unknown-property
transform-origin={`${x} ${y}`}
style={{ transform: `rotate(${angle}deg)` }}
>
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@vesoft-inc/force-graph": "2.0.7",
"@vesoft-inc/i18n": "^1.0.1",
"@vesoft-inc/icons": "^1.7.0",
"@vesoft-inc/nebula-explain-graph": "^1.0.3",
"@vesoft-inc/veditor": "^4.4.12",
"@vesoft-inc/nebula-explain-graph": "^1.0.6",
"@vesoft-inc/veditor": "^4.4.14",
"antd": "^5.8.4",
"axios": "^0.23.0",
"bezier-js": "^4.1.1",
Expand Down

0 comments on commit 332c16e

Please sign in to comment.