Skip to content

Commit e3594ef

Browse files
erda-botlaojun
andauthored
fix: api editor button style (#2224) (#2225)
* fix: api editor button style * fix: fix app setting mode empty error Co-authored-by: zxj <[email protected]>
1 parent f927e1d commit e3594ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shell/app/config-page/components/api-editor/api-editor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export const APIEditor = (props: CP_API_EDITOR.Props) => {
345345
);
346346
apiExecuteButton = (
347347
<Dropdown overlay={dropdownMenu}>
348-
<Button {...rest} className="flex ml-3">
348+
<Button {...rest} className="inline-flex items-center ml-3">
349349
{text}
350350
<ErdaIcon type="caret-down" className="ml-1" />
351351
</Button>

shell/app/modules/application/pages/settings/app-settings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export const PureAppSettings = () => {
300300
let dataSource = settingSource;
301301
if (!isEmpty(appDetail)) {
302302
const { mode } = appDetail;
303-
dataSource = settingSource.filter((item) => showMap[mode].includes(item.groupKey));
303+
dataSource = settingSource.filter((item) => showMap[mode]?.includes(item.groupKey));
304304
}
305305

306306
return <SettingTabs className="app-settings-main" dataSource={dataSource} />;

0 commit comments

Comments
 (0)