repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
ui
/
web
/
src
/
composables
/
UIClient.ts
diff --git
a/ui/web/src/composables/UIClient.ts
b/ui/web/src/composables/UIClient.ts
index 571d6d5b85a64cd4bb54ef2493c0af68d5e2b0bb..9522c59213c666a526d48927447024f3e8fc065a 100644
(file)
--- a/
ui/web/src/composables/UIClient.ts
+++ b/
ui/web/src/composables/UIClient.ts
@@
-238,7
+238,7
@@
export class UIClient {
private responseHandler(messageEvent: MessageEvent<string>): void {
let response: ProtocolResponse
try {
private responseHandler(messageEvent: MessageEvent<string>): void {
let response: ProtocolResponse
try {
- response = JSON.parse(messageEvent.data)
as ProtocolResponse
+ response = JSON.parse(messageEvent.data)
} catch (error) {
useToast().error('Invalid response JSON format')
console.error('Invalid response JSON format', error)
} catch (error) {
useToast().error('Invalid response JSON format')
console.error('Invalid response JSON format', error)