|
|
@@ -1,4 +1,4 @@
|
|
|
-import React, { Suspense } from 'react';
|
|
|
+import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
@@ -11,8 +11,6 @@ import EditorContainer from '../../services/EditorContainer';
|
|
|
|
|
|
import TagEditModal from './TagEditModal';
|
|
|
|
|
|
-const tags = null;
|
|
|
-
|
|
|
class TagLabels extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
@@ -28,6 +26,10 @@ class TagLabels extends React.Component {
|
|
|
this.renderTagLabels = this.renderTagLabels.bind(this);
|
|
|
}
|
|
|
|
|
|
+ shouldComponentUpdate() {
|
|
|
+ return this.getEditTargetData() != null;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return tags data
|
|
|
* 1. pageContainer.state.tags if isEditorMode is false
|