Files
ragflow_python/web/src/utils/stroreUtil.ts

10 lines
235 B
TypeScript
Raw Normal View History

export const getOneNamespaceEffectsLoading = (
namespace: string,
effects: Record<string, boolean>,
effectNames: Array<string>,
) => {
return effectNames.some(
(effectName) => effects[`${namespace}/${effectName}`],
);
};