fix(ApiModal): fix null assertion on tabs array
fix(ApiModal): fix strict mode in tsconfig.json to enable strict type checking
This commit is contained in:
parent
aae6223593
commit
9b0ff166c9
2 changed files with 6 additions and 6 deletions
|
|
@ -157,10 +157,10 @@ const ApiModal = forwardRef(
|
||||||
const pythonCode = getPythonCode(flow, tweak.current, tabsState);
|
const pythonCode = getPythonCode(flow, tweak.current, tabsState);
|
||||||
const widgetCode = getWidgetCode(flow, tabsState);
|
const widgetCode = getWidgetCode(flow, tabsState);
|
||||||
|
|
||||||
tabs[0].code = curl_code;
|
tabs![0].code = curl_code;
|
||||||
tabs[1].code = pythonApiCode;
|
tabs![1].code = pythonApiCode;
|
||||||
tabs[2].code = pythonCode;
|
tabs![2].code = pythonCode;
|
||||||
tabs[3].code = widgetCode;
|
tabs![3].code = widgetCode;
|
||||||
|
|
||||||
setTweak(tweak.current);
|
setTweak(tweak.current);
|
||||||
}
|
}
|
||||||
|
|
@ -214,7 +214,7 @@ const ApiModal = forwardRef(
|
||||||
<BaseModal.Content>
|
<BaseModal.Content>
|
||||||
<CodeTabsComponent
|
<CodeTabsComponent
|
||||||
flow={flow}
|
flow={flow}
|
||||||
tabs={tabs}
|
tabs={tabs!}
|
||||||
activeTab={activeTab}
|
activeTab={activeTab}
|
||||||
setActiveTab={setActiveTab}
|
setActiveTab={setActiveTab}
|
||||||
tweaks={{
|
tweaks={{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strict": false,
|
"strict": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue