diff --git a/modules/backend/assets/js/october.inspector.js b/modules/backend/assets/js/october.inspector.js index 2b5ed0382..2e61c1c9a 100644 --- a/modules/backend/assets/js/october.inspector.js +++ b/modules/backend/assets/js/october.inspector.js @@ -307,13 +307,15 @@ }) var matches = [] - if (matches = propertyValue.match(/^\{\{([^\}]+)\}\}$/)) { - var value = $.trim(matches[1]) + if (propertyValue) { + if (matches = propertyValue.match(/^\{\{([^\}]+)\}\}$/)) { + var value = $.trim(matches[1]) - if (value.length > 0) { - self.showExternalParameterEditor($editorContainer, $editor, $editorLink, $td, true) - $editor.find('input').val(value) - self.writeProperty(property, null, true) + if (value.length > 0) { + self.showExternalParameterEditor($editorContainer, $editor, $editorLink, $td, true) + $editor.find('input').val(value) + self.writeProperty(property, null, true) + } } } }