Skip to content

Commit 5332efe

Browse files
committed
fix(plugin-git): fix changelog toggle
1 parent f89aa8f commit 5332efe

File tree

1 file changed

+2
-2
lines changed
  • plugins/development/plugin-git/src/client/components

1 file changed

+2
-2
lines changed

plugins/development/plugin-git/src/client/components/Changelog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export const Changelog = defineComponent({
6363
return formatter.format(latest.date)
6464
})
6565

66-
const [active, toggle] = useToggle()
66+
const [active, toggleActive] = useToggle()
6767

6868
const ChangelogHeader: FunctionalComponent = () =>
69-
h('div', { class: 'changelog-header', onClick: toggle }, [
69+
h('div', { class: 'changelog-header', onClick: () => toggleActive() }, [
7070
h('div', { class: 'latest-updated' }, [
7171
h('span', { class: 'vpi-changelog' }),
7272
h('span', [locale.value.latestUpdateAt, ' ']),

0 commit comments

Comments
 (0)