mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-17 07:12:13 -04:00
DEV: Ensure helper or post exist before decorations (#27)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user