Skip to content

Commit

Permalink
Fix optional chaining for frontRowActions in MoreTable
Browse files Browse the repository at this point in the history
Updated the conditional check for `frontRowActions` to use optional chaining, preventing potential runtime errors when the property is undefined or null. This ensures more robust and error-proof behavior for row action rendering.
  • Loading branch information
janoliver20 committed Dec 11, 2024
1 parent faa58c7 commit 1a7bdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/shared/MoreTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Licensed under the Elastic License 2.0. */
@row-click="onRowClick($event)"
>
<Column
v-if="frontRowActions.length"
v-if="frontRowActions?.length"
key="actions"
class="row-actions"
:frozen="true"
Expand Down

0 comments on commit 1a7bdab

Please sign in to comment.