fix: add prefer-array-some rule (#5109)

This commit is contained in:
LongYinan
2023-11-29 04:43:43 +00:00
parent 23cfc58fe2
commit d267029761
5 changed files with 7 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ export const SettingModal = ({
<WorkspaceSetting key={workspaceId} workspaceId={workspaceId} />
</Suspense>
) : null}
{generalSettingList.find(v => v.key === activeTab) ? (
{generalSettingList.some(v => v.key === activeTab) ? (
<GeneralSetting generalKey={activeTab as GeneralSettingKeys} />
) : null}
{activeTab === 'account' && loginStatus === 'authenticated' ? (