fix event param not updating (#7902)

This commit is contained in:
Nakul Nagargade 2023-10-17 13:36:36 +05:30 committed by GitHub
parent 40323decef
commit 6875e3705f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,8 @@ import { useTranslation } from 'react-i18next';
export function GotoApp({ getAllApps, event, handlerChanged, eventIndex, darkMode }) {
const queryParamChangeHandler = (index, key, value) => {
if (event?.queryParams?.[index]?.[key]) {
event.queryParams[index][key] = value;
handlerChanged(eventIndex, 'queryParams', event.queryParams);
}
event.queryParams[index][key] = value;
handlerChanged(eventIndex, 'queryParams', event.queryParams);
};
const { t } = useTranslation();