From 741f3591e6c814f6d70519b87184fbcaf38089c5 Mon Sep 17 00:00:00 2001 From: Chaiwat Ekkaewnumchai Date: Tue, 2 Jun 2020 01:44:21 -0700 Subject: [PATCH] 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 --- desktop/plugins/databases/index.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/desktop/plugins/databases/index.tsx b/desktop/plugins/databases/index.tsx index b7e959091..d31385656 100644 --- a/desktop/plugins/databases/index.tsx +++ b/desktop/plugins/databases/index.tsx @@ -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,