Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fixing minor bugs for both the assertion form and the custom table #319

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const CreateAssertionForm: React.FC<TCreateAssertionFormProps> = ({
}, [onForm, form]);

useEffect(() => {
onSelectorList(defaultSelectorList);
onSelectorList(assertion ? assertion.selectors : defaultSelectorList);
}, [onSelectorList, defaultSelectorList]);

const spanTagsMap = attrs?.reduce((acc: {[x: string]: any}, item: {key: string}) => {
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/CustomTable/CustomTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const CustomTable = styled(Table).attrs({
font-weight: 600;
}

.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td,
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th {
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td,
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th {
border-right: none;
}

.ant-table.ant-table-bordered > .ant-table-container {
.ant-table.ant-table-bordered > .ant-table-body {
border-right: 1px solid #f0f0f0;
}

Expand Down