A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
refactor(ts): remove downlevelIteration flag
haitao(lj)c7fa313df896
diff --git a/ui/src/pages/Questions/Ask/index.tsx b/ui/src/pages/Questions/Ask/index.tsxindex 3ed72f84..f8f1ea1e 100644--- a/ui/src/pages/Questions/Ask/index.tsx+++ b/ui/src/pages/Questions/Ask/index.tsx@@ -123,7 +123,7 @@ const Ask = () => {isInvalid: true,errorMsg: t('form.fields.title.msg.empty'),};- } else if ([...title.value].length > 150) {+ } else if (Array.from(title.value).length > 150) {bol = false;formData.title = {value: title.value,diff --git a/ui/tsconfig.json b/ui/tsconfig.jsonindex 000cc227..3cfbea32 100644--- a/ui/tsconfig.json+++ b/ui/tsconfig.json@@ -7,7 +7,6 @@"esModuleInterop": true,"allowSyntheticDefaultImports": true,"strict": true,- "downlevelIteration": true,"forceConsistentCasingInFileNames": true,"noFallthroughCasesInSwitch": true,"module": "esnext",