Skip to content

Commit

Permalink
fix(poll): adjust event payload
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Jan 14, 2025
1 parent 15d24d0 commit 2de55d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/PollViewer/PollDraftHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'
import EmptyView from '../EmptyView.vue'
import Poll from '../MessagesList/MessagesGroup/Message/MessagePart/Poll.vue'

import { useStore } from '../../composables/useStore.js'
import { EventBus } from '../../services/EventBus.ts'
import { usePollsStore } from '../../stores/polls.ts'

Expand All @@ -60,7 +59,6 @@ const emit = defineEmits<{
(event: 'close'): void,
}>()

const store = useStore()
const pollsStore = usePollsStore()
/**
* Receive poll drafts for the current conversation as owner/moderator
Expand All @@ -72,7 +70,7 @@ const pollDrafts = computed(() => pollsStore.getDrafts(props.token))
* Opens poll editor pre-filled from the draft
* @param id poll draft ID
*/
function openPollEditor(id) {
function openPollEditor(id: number) {
EventBus.emit('poll-editor-open', id)
}
</script>
Expand Down

0 comments on commit 2de55d1

Please sign in to comment.