-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix conditions for trigger validation #420
Conversation
@@ -87,7 +89,7 @@ const TriggerAddContainer = (props: Props) => { | |||
setTrigger({ ...trigger, ...update }); | |||
dispatch(setError(null)); | |||
|
|||
if (update.is_remote) { | |||
if (update?.trigger_source === TriggerSource.GRAPHITE_LOCAL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (update?.trigger_source === TriggerSource.GRAPHITE_LOCAL) { | |
if (update?.trigger_source) { |
Здесь смысл в том, что если мы переключаем источник на любой другой, кнопка сохранения разблокируется. Поэтому сравнивать не надо, просто смотрим, менялось ли поле trigger_source
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Починил
/build |
Build and push Docker images with tag: 2023-09-06.a8b050e |
- fix ternary expression in TriggerEditContainer - reset target validation state on switch data source
…nto fix/validate-on-metric-source # Conflicts: # src/Containers/TriggerAddContainer.tsx
No description provided.