From cdb0a460a6563cd77ae0e8bf665095e31b820b6c Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 7 Nov 2023 08:04:04 +0300 Subject: [PATCH] Fix types Signed-off-by: Olga Bulat --- frontend/src/components/VAudioTrack/VAudioControl.vue | 2 +- frontend/src/components/VAudioTrack/VPlayPause.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/VAudioTrack/VAudioControl.vue b/frontend/src/components/VAudioTrack/VAudioControl.vue index eed258abe8b..4e220245b9a 100644 --- a/frontend/src/components/VAudioTrack/VAudioControl.vue +++ b/frontend/src/components/VAudioTrack/VAudioControl.vue @@ -139,7 +139,7 @@ export default defineComponent({ const connections = computed(() => { return props.layout === "row" && props.size === "small" ? [] - : layoutConnectionsMap[props.layout] + : [...layoutConnectionsMap[props.layout]] }) /** Convert the `play-pause` sizes to `VIconButton` sizes */ diff --git a/frontend/src/components/VAudioTrack/VPlayPause.vue b/frontend/src/components/VAudioTrack/VPlayPause.vue index f1f0b42fe1b..c64fe641b0f 100644 --- a/frontend/src/components/VAudioTrack/VPlayPause.vue +++ b/frontend/src/components/VAudioTrack/VPlayPause.vue @@ -110,7 +110,7 @@ export default defineComponent({ const buttonProps = computed(() => { const variant = "plain--avoid" as ButtonVariant - return { variant, connections: layoutConnectionsMap[props.layout] } + return { variant, connections: [...layoutConnectionsMap[props.layout]] } }) const handleMouseDown = (event: MouseEvent) => {