Get Table Structure Even without Accessing The Page

Summary: This diff helps obtaining metadata for using to edit row

Reviewed By: jknoxville

Differential Revision: D21788246

fbshipit-source-id: bf01eff8866c82f001575d59cc2886b6cdd39dc5
This commit is contained in:
Chaiwat Ekkaewnumchai
2020-06-02 01:44:21 -07:00
committed by Facebook GitHub Bot
parent 1895dd111a
commit 741f3591e6

View File

@@ -833,12 +833,7 @@ export default class DatabasesPlugin extends FlipperPlugin<
this.setState({error: e});
});
}
if (
newState.viewMode === 'structure' &&
newState.currentStructure === null &&
databaseId &&
table
) {
if (newState.currentStructure === null && databaseId && table) {
this.databaseClient
.getTableStructure({
databaseId: databaseId,