mirror of
https://github.com/unraid/api.git
synced 2026-05-01 04:31:31 -05:00
refactor: optional chaining for click props
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user