Skip to content

Commit

Permalink
chore(thumbnail-view-defaults): fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dblanken-yale committed Sep 18, 2024
1 parent b3f3a08 commit 0faa0fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ public function getView($type, $params) {

$eventTimePeriod = $paramsDecoded['filters']['event_time_period'] ?? NULL;

// Determine if we are in a state where field_options doesn't yet exist (pre-existing view)
$no_field_display_options_saved = !key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']);
// Determine if we are in a state where field_options doesn't yet exist
// (pre-existing view)
$no_field_display_options_saved = !array_key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']);

$field_display_options = [
'show_categories' => (int) !empty($paramsDecoded['field_options']['show_categories']),
Expand Down

0 comments on commit 0faa0fb

Please sign in to comment.