From 9582a9f2cd5bfdaf9b5df3b6c70aabdcb6498d9f Mon Sep 17 00:00:00 2001 From: or-else Date: Sun, 19 Dec 2021 10:59:08 -0800 Subject: [PATCH] simplify a bit and remove debug logging --- src/lib/formatters.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/formatters.js b/src/lib/formatters.js index b88c960d..1aec2c7f 100644 --- a/src/lib/formatters.js +++ b/src/lib/formatters.js @@ -202,17 +202,11 @@ export function fullFormatter(style, data, values, key) { // formatMessage: this.props.intl.formatMessage // messages: formatjs messages defined with defineMessages. export function previewFormatter(style, data, values, key) { - console.log("Formatting (s, d, v, k):", style, data, values, key); if (!style) { // Unformatted. return values; } - if (style == 'HD') { - // Hidden. - return null; - } - let el = Drafty.tagName(style); const attr = { key: key }; switch (style) { @@ -261,6 +255,7 @@ export function previewFormatter(style, data, values, key) { values = [attachment, this.formatMessage(messages.drafty_attachment)]; break; case 'QQ': + case 'HD': el = null; values = null; break;