Update link.service.ts

This commit is contained in:
piotrpekala7 2020-08-06 11:40:18 +02:00
parent d1fb7e6624
commit a1f6be337a

View File

@ -55,8 +55,8 @@ export class LinkService {
}
updateLink(server: Server, link: Link) {
// link.x = Math.round(link.x);
// link.y = Math.round(link.y);
link.x = Math.round(link.x);
link.y = Math.round(link.y);
return this.httpServer.put<Link>(server, `/projects/${link.project_id}/links/${link.link_id}`, link);
}