mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +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) => {
|
||||
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[config] && typeof overrideConfig[config] === 'object') {
|
||||
const nodeIds = Object.keys(overrideConfig[config])
|
||||
@@ -1037,6 +1039,7 @@ export const replaceInputsWithConfig = (flowNodeData: INodeData, overrideConfig:
|
||||
if (!isParameterEnabled(flowNodeData.label, config)) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
let paramValue = inputsObj[config]
|
||||
const overrideConfigValue = overrideConfig[config]
|
||||
|
||||
Reference in New Issue
Block a user