This commit is contained in:
James
2020-07-08 11:30:26 -04:00
parent 1882a6ac5d
commit 4f383493c6
5 changed files with 17 additions and 3 deletions

View File

@@ -114,6 +114,7 @@ ActionPanel.defaultProps = {
verticalAlignment: 'center',
blockType: null,
isHovered: false,
blocks: [],
};
ActionPanel.propTypes = {
@@ -121,6 +122,9 @@ ActionPanel.propTypes = {
addRow: PropTypes.func.isRequired,
removeRow: PropTypes.func.isRequired,
blockType: PropTypes.oneOf(['blocks', 'array']),
blocks: PropTypes.arrayOf(
PropTypes.shape({}),
),
verticalAlignment: PropTypes.oneOf(['top', 'center', 'sticky']),
isHovered: PropTypes.bool,
rowIndex: PropTypes.number.isRequired,

View File

@@ -44,7 +44,7 @@ module.exports = function localizationPlugin(schema, options) {
const locale = owner.getLocale();
const localeSubDoc = this.$__getValue(path);
if (localeSubDoc === null || localeSubDoc === void 0) {
if (localeSubDoc === null || localeSubDoc === undefined) {
return localeSubDoc;
}