mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
### What problem does this PR solve? fix: Set the default value of Self RAG to false #1220 fix: Change all tool file names to kebab format ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
14
web/src/utils/store-util.ts
Normal file
14
web/src/utils/store-util.ts
Normal file
@ -0,0 +1,14 @@
|
||||
export const getOneNamespaceEffectsLoading = (
|
||||
namespace: string,
|
||||
effects: Record<string, boolean>,
|
||||
effectNames: Array<string>,
|
||||
) => {
|
||||
return effectNames.some(
|
||||
(effectName) => effects[`${namespace}/${effectName}`],
|
||||
);
|
||||
};
|
||||
|
||||
export const delay = (ms: number) =>
|
||||
new Promise((resolve) => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
Reference in New Issue
Block a user