[frontend] minor bugfix: fixed api method `cancel build`.