Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Bug fix 2573 #2582

Closed
wants to merge 2 commits into from
Closed

Bug fix 2573 #2582

wants to merge 2 commits into from

Conversation

debapi94
Copy link
Contributor

Pull Request type

  • [x ] Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

#2573

@peterlau
Copy link
Collaborator

peterlau commented Nov 16, 2021

After a discussion with @aravindanr it appears this entire block of code is entirely unnecessary as domain is evaluated as part of the tasks array where it is available and we should just use the value as-is returned by the API.

Could you try if the following simplification works?

  const handleSelectedTask = (task) => {
        setSelectedTask(task);
  }

@peterlau peterlau linked an issue Nov 16, 2021 that may be closed by this pull request
@peterlau peterlau added UI User Interface bugs and issues type: bug bugs/ bug fixes labels Nov 16, 2021
@@ -226,9 +226,14 @@ export default function Execution() {
if (task) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Eliminate all logic in handleSelectedTask. task.domain should be automatically populated by API already.

@debapi94
Copy link
Contributor Author

Opend a new PR as this one got mixed with changes from other branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug bugs/ bug fixes UI User Interface bugs and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants