mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-01 21:27:15 +00:00
fix(react): reverse result of topological sort, autofocus in add tag modal (#2759)
This commit is contained in:
parent
62ba937bb7
commit
c2252427d9
@ -50,9 +50,9 @@ describe('DataJobProfile', () => {
|
||||
const jobsList = getAllByTestId('datajob-item-preview');
|
||||
|
||||
expect(jobsList.length).toBe(3);
|
||||
expect(jobsList[0].innerHTML).toMatch(/DataJobInfoName3/);
|
||||
expect(jobsList[0].innerHTML).toMatch(/DataJobInfoName2/);
|
||||
expect(jobsList[1].innerHTML).toMatch(/DataJobInfoName/);
|
||||
expect(jobsList[2].innerHTML).toMatch(/DataJobInfoName2/);
|
||||
expect(jobsList[2].innerHTML).toMatch(/DataJobInfoName3/);
|
||||
await act(() => promise);
|
||||
});
|
||||
});
|
||||
|
||||
@ -113,6 +113,7 @@ export default function AddTagModal({ updateTags, globalTags, visible, onClose }
|
||||
>
|
||||
<TagSelect
|
||||
allowClear
|
||||
autoFocus
|
||||
showSearch
|
||||
placeholder="Find a tag"
|
||||
defaultActiveFirstOption={false}
|
||||
|
||||
@ -42,5 +42,5 @@ export function topologicalSort(input: Array<EntityRelationship | null>) {
|
||||
}
|
||||
});
|
||||
|
||||
return result;
|
||||
return result.reverse();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user