diff --git a/javascripts/discourse/api-initializers/table-editor.js b/javascripts/discourse/api-initializers/table-editor.js index 76c1ea7..c0ca284 100644 --- a/javascripts/discourse/api-initializers/table-editor.js +++ b/javascripts/discourse/api-initializers/table-editor.js @@ -73,6 +73,9 @@ export default apiInitializer("0.11.1", (api) => { api.decorateCookedElement( (post, helper) => { + if (!helper || !post) { + return; + } const canEdit = helper.widget.attrs.canEdit; if (!canEdit) {