Skip to content

Commit

Permalink
ensure api exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Feb 1, 2024
1 parent 5402b56 commit 175eb8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const getEventScopeFromRowClickTriggerContext = (
if (!column) {
// This should never happe, but in case it does we log data necessary for debugging.
// eslint-disable-next-line no-console
console.error(data, api.panelTitle ? `Embeddable [${api.panelTitle.value}]` : null);
console.error(data, api?.panelTitle ? `Embeddable [${api.panelTitle.value}]` : null);
throw new Error('Could not find a datatable column.');
}
values.push(row[columnId]);
Expand Down

0 comments on commit 175eb8e

Please sign in to comment.