We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 424d8db commit ce5b64dCopy full SHA for ce5b64d
1 file changed
process/src/jobs/metabase/widget-query.ts
@@ -7,7 +7,9 @@ import { RequestWidget } from "../../types";
7
const BATCH_SIZE = 5000;
8
9
function sanitizeRemoteValue(value: string): string {
10
- if (!value) return "";
+ if (!value) {
11
+ return "";
12
+ }
13
14
return (
15
value
@@ -23,8 +25,12 @@ function sanitizeRemoteValue(value: string): string {
23
25
}
24
26
27
const toArray = (value: string | string[] | undefined) => {
- if (!value) return [];
- if (Array.isArray(value)) return value.map(sanitizeRemoteValue);
28
29
+ return [];
30
31
+ if (Array.isArray(value)) {
32
+ return value.map(sanitizeRemoteValue);
33
34
return [sanitizeRemoteValue(value)];
35
};
36
0 commit comments