- Notifications
You must be signed in to change notification settings - Fork928
fix(site): fix parameters' request upon template variables update#11898
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,7 +6,7 @@ import { | ||
PopoverTrigger, | ||
} from "components/Popover/Popover"; | ||
import { ProvisionerTag } from "pages/HealthPage/ProvisionerDaemonsPage"; | ||
import {Fragment,type FC } from "react"; | ||
import useTheme from "@mui/system/useTheme"; | ||
import { useFormik } from "formik"; | ||
import * as Yup from "yup"; | ||
@@ -111,18 +111,13 @@ export const ProvisionerTagsPopover: FC<ProvisionerTagsPopoverProps> = ({ | ||
return key !== "owner"; | ||
}) | ||
.map((k) => ( | ||
<Fragment key={k}> | ||
{k === "scope" ? ( | ||
<ProvisionerTag k={k} v={tags[k]} /> | ||
) : ( | ||
<ProvisionerTag k={k} v={tags[k]} onDelete={onDelete} /> | ||
)} | ||
</Fragment> | ||
Comment on lines +114 to +120 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. this doesn't even need to be a fragment, both branches only return one element. I guess it's nice to only specify the key in one place tho. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yes! | ||
))} | ||
</Stack> | ||