Permalink
Browse files

Truncate filter label if it's too long to fit

Differential Revision: D7144192

fbshipit-source-id: 4001930b194421682fa9bdc9b097434910f339b6
  • Loading branch information...
alex288ms authored and facebook-github-bot committed Mar 3, 2018
1 parent 34b8876 commit f7343576fc2ca941b03145d9e97208bcbc8c345b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 &&

0 comments on commit f734357

Please sign in to comment.