export function setTempAttribute() { const newAttribute = cloneDeep(this.props.modifiedDataAttribute); forEach(newAttribute.params, (value, key) => { if (includes(key, 'Value')) { set(newAttribute.params, replace(key, 'Value', ''), value); unset(newAttribute.params, key); } }); return newAttribute; }
__removeProperty(path, nameForError) { if (!has(this, path)) { throw new Error(`Can't remove ${nameForError} from outgoingMessage that doesn't have any ${nameForError}`); } unset(this, path); return this; }
removeField(field) { unset(this, field.path); }
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
handleActions({ [INITIALIZE]: (state, { payload: initial = {} }) => { const result = { initial, options: state.options || initial }; return state.data ? set('data', state.data, result) : result; }, [SET_FETCH_OPTIONS]: (state, { payload: options }) => set('options', options, state), [FETCH]: state => set('triggerFetch', true, state), [CLEAR_FETCH]: state => unset('triggerFetch', state), [FETCH_REQUEST]: (state, { payload: options }) => { const result = { ...state, fetching: true, options }; return unset('error', result); }, [FETCH_REQUEST_SUCCESS]: (state, { payload = {} }) => { const { data, options = {} } = payload; const result = { ...state, options: { ...state.options || {}, ...options }, data, }; return unset('fetching', result); }, [FETCH_REQUEST_FAILURE]: (state) => { const result = { ...state, error: true }; return unset('fetching', result); }, [RESET]: state => ({ initial: state.initial || {}, options: state.initial || {}, }), }, initialState)
forEach(body, (v, bodyKey) => { if (!includes(bodyKey, 'enabled') && includes(bodyKey, sectionName)) { unset(body, bodyKey);
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })
const value = get(data, field) if (value === 'UNKNOWN') unset(data, field) })