1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix(edge): generate new EdgeID only if not present (#7454)

This commit is contained in:
matias-portainer 2022-08-11 22:23:13 -03:00 committed by GitHub
parent 87accfce5d
commit a750259a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ export function EdgeAgentTab({
);
function handleCreate(environment: Environment) {
setEdgeInfo({ key: environment.EdgeKey, id: uuid() });
setEdgeInfo({ key: environment.EdgeKey, id: environment.EdgeID || uuid() });
onCreate(environment);
}