mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Bugfix/Allow analytics override config (#3520)
allow analytics override config
This commit is contained in:
@@ -1014,6 +1014,8 @@ export const replaceInputsWithConfig = (flowNodeData: INodeData, overrideConfig:
|
|||||||
|
|
||||||
const getParamValues = (inputsObj: ICommonObject) => {
|
const getParamValues = (inputsObj: ICommonObject) => {
|
||||||
for (const config in overrideConfig) {
|
for (const config in overrideConfig) {
|
||||||
|
// Always allow analytics config: https://docs.flowiseai.com/using-flowise/analytic#api
|
||||||
|
if (config !== 'analytics') {
|
||||||
// If overrideConfig[key] is object
|
// If overrideConfig[key] is object
|
||||||
if (overrideConfig[config] && typeof overrideConfig[config] === 'object') {
|
if (overrideConfig[config] && typeof overrideConfig[config] === 'object') {
|
||||||
const nodeIds = Object.keys(overrideConfig[config])
|
const nodeIds = Object.keys(overrideConfig[config])
|
||||||
@@ -1037,6 +1039,7 @@ export const replaceInputsWithConfig = (flowNodeData: INodeData, overrideConfig:
|
|||||||
if (!isParameterEnabled(flowNodeData.label, config)) {
|
if (!isParameterEnabled(flowNodeData.label, config)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let paramValue = inputsObj[config]
|
let paramValue = inputsObj[config]
|
||||||
const overrideConfigValue = overrideConfig[config]
|
const overrideConfigValue = overrideConfig[config]
|
||||||
|
|||||||
Reference in New Issue
Block a user