<commit_before>import './adventure_selector_action_menu.html';
import { Template } from 'meteor/templating';
import { NodeReadyCheckFns } from '../../../../../imports/api/node/node_ready_check_fns.js';
import { NodeValidCheckFns } from '../../../../../imports/api/node/node_valid_check_fns.js';
import './adventure_selector_action_target_menu.js';

/**
 * Template Helpers
 */
Template.AdventureSelectorActionMenu.helpers({
  readyCheckFns () {
    return _.values(NodeReadyCheckFns)
  },
  validCheckFns () {
    return _.values(NodeValidCheckFns)
  },
  getSelector () {
    let selector = this.selector;
    return selector.selector || selector;
  }
});
<commit_msg>Added a null check to selectors check to prevent broken menus<commit_after>import './adventure_selector_action_menu.html';
import { Template } from 'meteor/templating';
import { NodeReadyCheckFns } from '../../../../../imports/api/nodes/node_ready_check_fns.js';
import { NodeValidCheckFns } from '../../../../../imports/api/nodes/node_valid_check_fns.js';
import './adventure_selector_action_target_menu.js';

/**
 * Template Helpers
 */
Template.AdventureSelectorActionMenu.helpers({
  readyCheckFns () {
    return _.values(NodeReadyCheckFns)
  },
  validCheckFns () {
    return _.values(NodeValidCheckFns)
  },
  getSelector () {
    let selector = this.selector;
    if(selector){
      return selector.selector || selector;
    }
  }
});

{'fraction_non_alphanumeric': 0.157001414427157, 'fraction_numerical': 0.0, 'mean_word_length': 3.7643097643097643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2148560', 'n_tokens_mistral': 450, 'n_tokens_neox': 452, 'n_words': 75}