Skip to content

Commit

Permalink
fix: fix plan jump error (#4052)
Browse files Browse the repository at this point in the history
* fix: fix plan jump error

* fix: fix error code
  • Loading branch information
laojun authored Aug 2, 2024
1 parent d7b5e84 commit a49c66a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const PipelineNode = (props: IProps) => {
detailInfo.push(
errors.map((error, idx) => (
<div key={`error-${String(idx)}`} className="app-pipeline-chart-msg-item">
<span className="app-pipeline-chart-msg-item-name error">{error.name || 'error'}</span>
<span className="app-pipeline-chart-msg-item-name error">{error.name || error.code || 'error'}</span>
<pre>{error.value || error.msg}</pre>
</div>
)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const PipelineNode = (props: IProps) => {
detailInfo.push(
errors.map((error, idx) => (
<div key={`error-${String(idx)}`} className="app-pipeline-chart-msg-item">
<span className="app-pipeline-chart-msg-item-name error">{error.name || 'error'}</span>
<span className="app-pipeline-chart-msg-item-name error">{error.name || error.code || 'error'}</span>
<pre>{error.value || error.msg}</pre>
</div>
)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const PipelineNode = (props: IProps) => {
detailInfo.push(
errors.map((error, idx) => (
<div key={`error-${String(idx)}`} className="app-pipeline-chart-msg-item">
<span className="app-pipeline-chart-msg-item-name error">{error.name || 'error'}</span>
<span className="app-pipeline-chart-msg-item-name error">{error.name || error.code || 'error'}</span>
<pre>{error.value || error.msg}</pre>
</div>
)),
Expand Down
4 changes: 3 additions & 1 deletion shell/app/modules/project/pages/test-plan/plan-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const TestPlanModal = (props: IProps) => {
addTestPlan(copy).then((d) => {
close();
if (d) {
goTo(`../${d}`);
goTo(goTo.pages.testPlanDetail, {
testPlanID: d,
});
}
});
}
Expand Down

0 comments on commit a49c66a

Please sign in to comment.