Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Aug 20, 2024
1 parent dde339b commit e7faac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class IbexaCustomTagAttributesView extends View {

Object.entries(attributes).forEach(([name, config]) => {
const value = values[name] === null || values[name] === undefined || values[name] === '' ? '-' : values[name];
const getValueLabelMethods = window.ibexa.richText.CKEditor.customTags.getValueLabelMethods || {};
const getValueLabelMethods = window.ibexa.richText.CKEditor.customTags?.getValueLabelMethods || {};
const valueLabel = getValueLabelMethods[name] && value !== '-' ? getValueLabelMethods[name](value, config) : value;

children.push({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class IbexaCustomTagFormView extends View {
this.saveButtonView = this.createButton('Save', null, 'ck-button-save', 'save-custom-tag');
this.cancelButtonView = this.createButton('Cancel', null, 'ck-button-cancel', 'cancel-custom-tag');

const attributeRenderMethods = window.ibexa.richText.CKEditor.customTags.attributeRenderMethods || {};
const setValueMethods = window.ibexa.richText.CKEditor.customTags.setValueMethods || {};
const getValueMethods = window.ibexa.richText.CKEditor.customTags.getValueMethods || {};
const attributeRenderMethods = window.ibexa.richText.CKEditor.customTags?.attributeRenderMethods || {};
const setValueMethods = window.ibexa.richText.CKEditor.customTags?.setValueMethods || {};
const getValueMethods = window.ibexa.richText.CKEditor.customTags?.getValueMethods || {};

this.attributeViews = {};
this.attributeRenderMethods = {
Expand Down

0 comments on commit e7faac2

Please sign in to comment.