Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: container registry password caanot be set when creating (#2778)
related PR: lablup/backend.ai-control-panel#892 **Changes:** This PR modifies the password handling logic in the `ContainerRegistryEditorModal` component. The condition for setting the password has been updated to include cases where a new container registry is being created (`!containerRegistry`). This ensures that the password is properly set for both new and existing registries. **Rationale:** The previous implementation only considered the `isChangedPassword` flag, which could lead to issues when creating a new container registry. By including the `!containerRegistry` condition, we ensure that the password is always set correctly for new registries, even if the `isChangedPassword` flag is not explicitly set. **Impact:** This change improves the reliability of password handling when creating or updating container registries. Users should now experience more consistent behavior when managing registry credentials. **Checklist:** - [ ] Test case(s) to demonstrate the difference of before/after - Create a new container registry and verify that the password is set correctly - Update an existing container registry with and without changing the password
- Loading branch information