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

pull/7467/head
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
1 changed files with 1 additions and 1 deletions

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);
}