Skip to content

Commit

Permalink
refactor(robot form repository-branch): 🎉 update repository branch se…
Browse files Browse the repository at this point in the history
…lector
  • Loading branch information
gokhangunduz committed Aug 8, 2023
1 parent 0ddab8f commit 6571fce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.9.8",
"version": "0.9.9",
"private": true,
"dependencies": {
"@emotion/css": "^11.10.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ export default function CreateRobotFormRepositoryItem({

useEffect(() => {
if (
formik.initialValues.workspaces[workspaceIndex].robotRepositories[
formik.initialValues.workspaces?.[workspaceIndex]?.robotRepositories?.[
repositoryIndex
].url !==
formik.values.workspaces[workspaceIndex].robotRepositories[
]?.url !==
formik.values.workspaces?.[workspaceIndex]?.robotRepositories?.[
repositoryIndex
].url
]?.url
) {
formik.setFieldValue(
`workspaces.${workspaceIndex}.robotRepositories.${repositoryIndex}.branch`,
Expand Down Expand Up @@ -236,9 +236,9 @@ export default function CreateRobotFormRepositoryItem({
)}
<InputError
error={
//prettier-ignore
// @ts-ignore
formik?.errors?.workspaces?.[workspaceIndex]
?.robotRepositories?.[repositoryIndex]?.url
formik?.errors?.workspaces?.[workspaceIndex]?.robotRepositories?.[repositoryIndex]?.url
}
touched={
formik?.touched?.workspaces?.[workspaceIndex]
Expand Down Expand Up @@ -293,9 +293,9 @@ export default function CreateRobotFormRepositoryItem({
)}
<InputError
error={
//prettier-ignore
// @ts-ignore
formik?.errors?.workspaces?.[workspaceIndex]
?.robotRepositories?.[repositoryIndex]?.branch
formik?.errors?.workspaces?.[workspaceIndex]?.robotRepositories?.[repositoryIndex]?.branch
}
touched={
formik?.touched?.workspaces?.[workspaceIndex]
Expand Down

0 comments on commit 6571fce

Please sign in to comment.