Skip to content

Commit

Permalink
hide settings button on settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
brahimmouhamou committed Apr 11, 2024
1 parent cecb9f5 commit 662e0cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ConnectionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const ConnectionDetails = ({
}}
setCurrentView={setCurrentView}
singleConnectionMode={singleConnectionMode}
settings={settings}
settings={currentView !== ConnectionViewType.Settings ? settings : null}
{...props}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const TopBar = ({

const hasFormFields = form_fields?.filter((field) => !field.hidden)?.length;

if (hasFormFields) {
if (settings && hasFormFields) {
options.push({
label: (
<button className="flex font-medium items-center">
Expand Down

0 comments on commit 662e0cd

Please sign in to comment.