refactor: optional chaining for click props

This commit is contained in:
Zack Spear
2024-05-16 08:52:07 -07:00
committed by Zack Spear
parent 487f5c1865
commit ff24f12cae
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ const filteredKeyActions = computed((): ServerStateDataAction[] | undefined => {
:icon-right-hover-display="true"
:text="t(action.text)"
:title="action.title ? t(action.title) : undefined"
@click="action.click ? action.click() : undefined"
@click="action.click?.()"
/>
</li>
</ul>