MCPcopy
hub / github.com/bugy/script-server / UPDATE_FORCED_PARAMETERS

Function UPDATE_FORCED_PARAMETERS

web-src/src/main-app/store/scriptSetup.js:161–172  ·  view source on GitHub ↗
(state, {oldParameterAllowedValues})

Source from the content-addressed store, hash-verified

159 }, {})
160 },
161 UPDATE_FORCED_PARAMETERS(state, {oldParameterAllowedValues}) {
162 const newParameterAllowedValues = state._parameterAllowedValues
163
164 for (const forcedParameter of clone(state.forcedValueParameters)) {
165 const oldValues = oldParameterAllowedValues[forcedParameter]
166 const newValues = newParameterAllowedValues[forcedParameter]
167
168 if (isNull(oldValues) || isNull(newValues) || !isEqual(oldValues, newValues)) {
169 removeElement(state.forcedValueParameters, forcedParameter)
170 }
171 }
172 },
173 RESET_DEFAULT_VALUES(state) {
174 state._default_values_from_config = {};
175 },

Callers

nothing calls this directly

Calls 2

isNullFunction · 0.90
removeElementFunction · 0.90

Tested by

no test coverage detected