Clean up after image widget experiments

This commit is contained in:
Daniel Lautzenheiser
2022-09-08 22:00:00 -04:00
parent e299613d6a
commit 97787741d7
4 changed files with 0 additions and 49 deletions

View File

@ -195,8 +195,6 @@ export default function withFileControl({ forImage } = {}) {
}
shouldComponentUpdate(nextProps) {
console.log('[withFileControl][shouldComponentUpdate] nextProps', nextProps);
/**
* Always update if the value or getAsset changes.
*/
@ -219,8 +217,6 @@ export default function withFileControl({ forImage } = {}) {
componentDidUpdate() {
const { mediaPaths, value, onRemoveInsertedMedia, onChange } = this.props;
const mediaPath = mediaPaths.get(this.controlID);
console.log('[withFileControl][shouldComponentUpdate] mediaPath', mediaPath);
console.log('[withFileControl][shouldComponentUpdate] value', value);
if (mediaPath && mediaPath !== value) {
onChange(mediaPath);
} else if (mediaPath && mediaPath === value) {