Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ciyer committed Jan 16, 2025
1 parent e5ceafb commit 5dd97f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,18 @@ function DocumentationModal({
getValues,
register,
reset,
setValue,
watch,
} = useForm<DocumentationForm>({
defaultValues: {
documentation: project.documentation || "",
},
});

useEffect(() => {
setValue("documentation", project.documentation || "");
}, [project.documentation, setValue]);

const onSubmit = useCallback(
(data: DocumentationForm) => {
updateProject({
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/e2e/projectV2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe("Edit v2 project", () => {
cy.contains("new name").should("be.visible");
});

it("changes project description", () => {
it.only("changes project description", () => {

Check failure on line 209 in tests/cypress/e2e/projectV2.spec.ts

View workflow job for this annotation

GitHub Actions / lint-e2e

it.only not permitted
fixtures.readProjectV2().updateProjectV2().listNamespaceV2();
cy.contains("My projects").should("be.visible");
cy.getDataCy("dashboard-project-list")
Expand Down

0 comments on commit 5dd97f9

Please sign in to comment.