Skip to content

Commit

Permalink
Truncate filter label if it's too long to fit
Browse files Browse the repository at this point in the history
Differential Revision: D7144192

fbshipit-source-id: 4001930b194421682fa9bdc9b097434910f339b6
  • Loading branch information
SnowCoderAlex authored and facebook-github-bot committed Mar 3, 2018
1 parent 34b8876 commit f734357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Utilities/truncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit f734357

Please sign in to comment.