mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
Re-enable rule prefer-destructuring (only for objects) (#10867)
This commit is contained in:
committed by
GitHub
parent
c51168a30a
commit
352e8a1afd
@@ -34,7 +34,7 @@ export function getFormDataFromControls(controlsState) {
|
||||
}
|
||||
|
||||
export function validateControl(control, processedState) {
|
||||
const validators = control.validators;
|
||||
const { validators } = control;
|
||||
const validationErrors = [];
|
||||
if (validators && validators.length > 0) {
|
||||
validators.forEach(f => {
|
||||
@@ -88,7 +88,7 @@ export const getControlConfig = memoizeOne(function getControlConfig(
|
||||
|
||||
function handleMissingChoice(control) {
|
||||
// If the value is not valid anymore based on choices, clear it
|
||||
const value = control.value;
|
||||
const { value } = control;
|
||||
if (
|
||||
control.type === 'SelectControl' &&
|
||||
!control.freeForm &&
|
||||
|
||||
Reference in New Issue
Block a user