From d85a357428cdd55fbf53d0b1c5f33a32243c40c8 Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 17 May 2019 06:21:38 -0700 Subject: [PATCH] Fix columnSize prop Summary: I added column size persistence when resizing manually, but broke initial column sizing when a prop is provided. This fixes it. Reviewed By: passy Differential Revision: D15392145 fbshipit-source-id: 53f79c520917cd571302502c8b75aa0475567cb9 --- src/ui/components/table/ManagedTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/components/table/ManagedTable.js b/src/ui/components/table/ManagedTable.js index e367669a0..e896c0d60 100644 --- a/src/ui/components/table/ManagedTable.js +++ b/src/ui/components/table/ManagedTable.js @@ -178,7 +178,7 @@ class ManagedTable extends React.Component< columnSizes: this.props.tableKey && globalTableState[this.props.tableKey] ? globalTableState[this.props.tableKey] - : {}, + : this.props.columnSizes || {}, highlightedRows: this.props.highlightedRows || new Set(), sortOrder: this.props.initialSortOrder || null, shouldScrollToBottom: Boolean(this.props.stickyBottom),