Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Liu committed Nov 21, 2023
1 parent 200bc9f commit a4d1f17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client-react/src/pages/app/app-settings/AppSettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AppSettingsForm: React.FC<AppSettingsFormProps> = props => {
const scenarioCheckerRef = useRef(new ScenarioService(t));
const scenarioChecker = scenarioCheckerRef.current!;

const [showAppSettings, setShowAppSettings] = useState(false);
const [showAppSettings, setShowAppSettings] = useState<boolean | undefined>(undefined);

const generalSettingsDirtyCheck = () => {
return generalSettingsDirty(values, initialValues);
Expand Down Expand Up @@ -92,7 +92,9 @@ const AppSettingsForm: React.FC<AppSettingsFormProps> = props => {

return (
<>
{showAppSettings ? null : <CustomBanner type={MessageBarType.info} message={t('directToEnvironmentVariablesInfoMessage')} />}
{showAppSettings || showAppSettings == undefined ? null : (
<CustomBanner type={MessageBarType.info} message={t('directToEnvironmentVariablesInfoMessage')} />
)}
<Pivot getTabId={getPivotTabId} defaultSelectedKey={tab} overflowBehavior={OverflowBehavior.menu}>
{showAppSettings ? (
<PivotItem
Expand Down

0 comments on commit a4d1f17

Please sign in to comment.