Skip to content

Commit

Permalink
fix: dashboard chart resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Aug 18, 2023
1 parent 9996998 commit 3878292
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/dashboard/VueGridLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ref="grid"
:layout="layouts"
v-bind="options"
@update:layout="debouncedUpdateLayouts"
@update:layout="emit('update:layouts', layouts)"
>
<template #default="{ gridItemProps }">
<grid-item
Expand Down Expand Up @@ -56,8 +56,6 @@ watchEffect(() => {
layouts.value = [...props.layouts]
})
const debouncedUpdateLayouts = debounce((layouts) => emit('update:layouts', layouts), 200)
async function toggleEnable(disable) {
if (options.isDraggable === !disable && options.isResizable === !disable) return
options.isDraggable = !disable
Expand Down

0 comments on commit 3878292

Please sign in to comment.