diff --git a/output/index.md b/output/index.md index 3d123200..08ef3735 100644 --- a/output/index.md +++ b/output/index.md @@ -98,8 +98,11 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download data: 'lang', visible: false, render: function (data, type, row, meta) { + if (type !== 'display') { + return data; + } if (!data) { - return 'X unknown (deleted tweet)'; + return 'X unknown (deleted)'; } const niceName = langLookup[data]; if (niceName === 'X') { @@ -115,10 +118,10 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download data: 'deleted', visible: false, render: function (data, type, row, meta) { - if (type === 'display') { - return (data === 1) ? 'Deleted' : 'Published'; + if (type !== 'display') { + return data; } - return data; + return (data === 1) ? 'Deleted' : 'Published'; } }, { @@ -147,7 +150,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download }, { column: 6, - rows: [0] + rows: ['Published'] }, ], initCollapsed: true