mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
Merge pull request #1302 from rishipurwar1/issue-1284
Implement auto import for array subtables
This commit is contained in:
@@ -33,7 +33,7 @@ export default function EmptyTable() {
|
||||
: false;
|
||||
let contents = <></>;
|
||||
|
||||
if (tableSettings.isCollection !== false && hasData) {
|
||||
if (hasData) {
|
||||
contents = (
|
||||
<>
|
||||
<div>
|
||||
@@ -41,9 +41,15 @@ export default function EmptyTable() {
|
||||
Get started
|
||||
</Typography>
|
||||
<Typography>
|
||||
There is existing data in the Firestore collection:
|
||||
{tableSettings.isCollection === false
|
||||
? "There is existing data in the Array Sub Table:"
|
||||
: "There is existing data in the Firestore collection:"}
|
||||
<br />
|
||||
<code>{tableSettings.collection}</code>
|
||||
<code>
|
||||
{tableSettings.collection}
|
||||
{tableSettings.subTableKey?.length &&
|
||||
`.${tableSettings.subTableKey}`}
|
||||
</code>
|
||||
</Typography>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user