Skip to content

Commit

Permalink
prevent some ui errors for bad polls
Browse files Browse the repository at this point in the history
  • Loading branch information
robguthrie committed Oct 24, 2023
1 parent bc895b8 commit 303db92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue/src/shared/services/poll_service.coffee
Expand Up @@ -12,7 +12,7 @@ import RescueUnsavedEditsService from '@/shared/services/rescue_unsaved_edits_se

export default new class PollService
actions: (poll, vm, event) ->
return {} unless poll
return {} unless poll && poll.config()
translate_poll:
icon: 'mdi-translate'
name: 'common.action.translate'
Expand Down

0 comments on commit 303db92

Please sign in to comment.