Skip to content

Commit

Permalink
fix(CODE): ADDON-57949 Fixed the custom menu with style property rela…
Browse files Browse the repository at this point in the history
…ted issue (#167)
  • Loading branch information
tbalar-splunk authored Nov 18, 2022
1 parent 63f2a3c commit cecb3f1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ui/src/main/webapp/pages/Input/InputPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,9 @@ function InputPage() {
);
};

const changeRoute = (val) => {
Object.keys(val).forEach((key) => {
query.set(key, val[key]);
});
history.push({ search: query.toString() });
const handleChangeCustomMenu = (val) => {
const { service } = val;
handleRequestOpen(service, services.find((x) => x.name === service).title);
};

const onTabChange = useCallback((e, { selectedTabId }) => {
Expand Down Expand Up @@ -260,7 +258,7 @@ function InputPage() {
{React.createElement(CustomMenu, {
fileName: customMenuField.src,
type: customMenuField.type,
handleChange: changeRoute,
handleChange: handleChangeCustomMenu
})}
</ColumnLayout.Column>
)
Expand Down

0 comments on commit cecb3f1

Please sign in to comment.