From f7343576fc2ca941b03145d9e97208bcbc8c345b Mon Sep 17 00:00:00 2001 From: Alex McKelvey Date: Fri, 2 Mar 2018 21:50:04 -0800 Subject: [PATCH] Truncate filter label if it's too long to fit Differential Revision: D7144192 fbshipit-source-id: 4001930b194421682fa9bdc9b097434910f339b6 --- Libraries/Utilities/truncate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Utilities/truncate.js b/Libraries/Utilities/truncate.js index 6a1204f9c..5ad0f86ee 100644 --- a/Libraries/Utilities/truncate.js +++ b/Libraries/Utilities/truncate.js @@ -25,7 +25,7 @@ const defaultOptions = { const truncate = function( str: ?string, maxChars: number, - options: truncateOptions + options?: truncateOptions ): ?string { options = Object.assign({}, defaultOptions, options); if (str && str.length &&