Skip to content

Commit

Permalink
fix(CODE): ADDON-57152 Fixed tabs clicking issue when style is set to…
Browse files Browse the repository at this point in the history
… page (#170)
  • Loading branch information
tbalar-splunk committed Nov 25, 2022
1 parent e5b54de commit 4974d59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/main/webapp/pages/Input/InputPage.jsx
Expand Up @@ -43,7 +43,7 @@ function InputPage() {

// Used for outer table is present or not
const table = unifiedConfigs.pages.inputs?.table;
const isOuterTable = table ? true : false;
const isOuterTable = !!table;

const [activeTabId, setActiveTabId] = useState(services[0].name);
const [selectedTabDescription, setSelectedTabDescription] = useState(services[0]?.description || "");
Expand Down Expand Up @@ -173,7 +173,6 @@ function InputPage() {
// handle close request for page style dialog
const handlePageDialogClose = () => {
setEntity({ ...entity, open: false });
query.delete('service');
query.delete('action');
history.push({ search: query.toString() });
};
Expand Down Expand Up @@ -207,8 +206,10 @@ function InputPage() {
}

query.set('service', selectedTabId);
query.delete('action');
history.push({ search: query.toString() });

// eslint-disable-next-line react-hooks/exhaustive-deps
}, [activeTabId]);

// Making a dropdown if we have more than one service
Expand Down

0 comments on commit 4974d59

Please sign in to comment.