Skip to content

Commit 48f811d

Browse files
committed
Fix table render
1 parent 1d0e2b5 commit 48f811d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-sqlite-explorer",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "Explorer for react-native-sqlite-storage library database inside react native app",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

src/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ const SQLiteExplorer = ({ params }: SQLiteExplorerProps) => {
8686
</View>
8787

8888
{status === 'loading' && <Loader />}
89-
{status !== 'loading' && !!tableData && (
89+
{!!tableData && (
9090
<Table tableData={tableData} onActionSuccess={onActionSuccess} />
9191
)}
92-
{status !== 'loading' && !tableData && (
93-
<Text style={styles.StatusText}>Empty</Text>
94-
)}
92+
{!tableData && <Text style={styles.StatusText}>Empty</Text>}
9593
</View>
9694
);
9795
};

0 commit comments

Comments
 (0)