Skip to content

Commit

Permalink
Fix array at downgrading (#541)
Browse files Browse the repository at this point in the history
* fix: init request url parse

* fix: init request url parse

* feat: exclusions noise reduce

* feat: diff denoise check all

* fix: array at downgrading

---------

Co-authored-by: onePone <[email protected]>
  • Loading branch information
1pone and Xremn authored Nov 15, 2023
1 parent 63969cb commit 47deb28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/arex/src/menus/Collection/CollectionNodeTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ const CollectionNodeTitle: FC<CollectionNodeTitleProps> = (props) => {
onSuccess: (res, [{ caseSourceType, nodeType }]) => {
if (res.success) {
getCollections().then(() => props.onAddNode?.(res.infoId, nodeType));
if (caseSourceType === 2) queryInterface({ id: nodePath.at(-1) as string }, res.infoId);
if (caseSourceType === 2)
queryInterface({ id: nodePath[nodePath.length - 1] as string }, res.infoId);
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/arex/src/pages/Logs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Logs: FC = () => {
};

const handleLoadMoreLogs = () => {
queryLogs(logsData.at(-1)?.id);
queryLogs(logsData[logsData.length - 1]?.id);
};

return (
Expand Down
13 changes: 8 additions & 5 deletions packages/arex/src/panes/Replay/PlanItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,14 @@ const PlanItem: FC<ReplayPlanItemProps> = (props) => {
onFilterDropdownOpenChange: (visible) => {
visible && setTimeout(() => searchInput.current?.select(), 100);
},
render: (value) => (
<Tooltip placement='topLeft' title={value}>
{'/' + (value ?? '').split('/').at(-1)}
</Tooltip>
),
render: (value) => {
const split = (value ?? '').split('/');
return (
<Tooltip placement='topLeft' title={value}>
{'/' + split[split.length - 1]}
</Tooltip>
);
},
},
{
title: t('replay.state'),
Expand Down

0 comments on commit 47deb28

Please sign in to comment.