From: Lucas Di Pentima Date: Thu, 3 Feb 2022 16:16:09 +0000 (-0300) Subject: 18661: Fixes the '
cannot appear as a child of ' error. X-Git-Tag: 2.4.0~13^2~3 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/606119d81b87f4e5e835c777b012f56e7d5c146d 18661: Fixes the '
cannot appear as a child of ' error. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/components/data-table/data-table.test.tsx b/src/components/data-table/data-table.test.tsx index 85379e9a..866564ac 100644 --- a/src/components/data-table/data-table.test.tsx +++ b/src/components/data-table/data-table.test.tsx @@ -101,6 +101,7 @@ describe("", () => { ]; const dataTable = mount(", () => { ]; const dataTable = mount( - { - this.props.working ? -
- -
: items.map(this.renderBodyRow) - } + { this.props.working !== undefined && !this.props.working && items.map(this.renderBodyRow) }
+ { this.props.working && +
+ +
} {items.length === 0 && this.props.working !== undefined && !this.props.working && this.renderNoItemsPlaceholder()}
;