<commit_before><div class="tab-section">
  <div role="tabpanel">
{{#let (hash
  searchproperties=(if (not-eq searchproperty undefined)
    (split searchproperty ',')
    searchProperties
  )
) as |filters|}}
  {{#let (or sortBy "DestinationName:asc") as |sort|}}
    {{#if (gt proxy.Service.Proxy.Upstreams.length 0)}}
      <input type="checkbox" id="toolbar-toggle" />
      <Consul::UpstreamInstance::SearchBar
        @search={{search}}
        @onsearch={{action (mut search) value="target.value"}}
        @searchproperties={{searchProperties}}

        @sort={{sort}}
        @onsort={{action (mut sortBy) value="target.selected"}}

        @filter={{filters}}
        @onfilter={{hash
          searchproperty=(action (mut searchproperty) value="target.selectedItems")
        }}
      />
      <DataCollection
        @type="upstream-instance"
        @sort={{sort}}
        @filters={{filters}}
        @search={{search}}
        @items={{proxy.Service.Proxy.Upstreams}}
      as |collection|>
        <collection.Collection>
          <Consul::UpstreamInstance::List
            @items={{collection.items}}
            @dc={{dc}}
            @nspace={{nspace}}
          />
        </collection.Collection>
        <collection.Empty>
          <EmptyState>
            <BlockSlot @name="body">
              <p>
                This service has no upstreams{{#if (gt proxy.Service.Proxy.Upstreams.length 0)}} matching that search{{/if}}.
              </p>
            </BlockSlot>
          </EmptyState>
        </collection.Empty>
      </DataCollection>
    {{/if}}
  {{/let}}
{{/let}}
  </div>
</div><commit_msg>ui: Fix up erroneously placed conditional (#9447)<commit_after><div class="tab-section">
  <div role="tabpanel">
{{#let (hash
  searchproperties=(if (not-eq searchproperty undefined)
    (split searchproperty ',')
    searchProperties
  )
) as |filters|}}
  {{#let (or sortBy "DestinationName:asc") as |sort|}}
    {{#if (gt proxy.Service.Proxy.Upstreams.length 0)}}
      <input type="checkbox" id="toolbar-toggle" />
      <Consul::UpstreamInstance::SearchBar
        @search={{search}}
        @onsearch={{action (mut search) value="target.value"}}
        @searchproperties={{searchProperties}}

        @sort={{sort}}
        @onsort={{action (mut sortBy) value="target.selected"}}

        @filter={{filters}}
        @onfilter={{hash
          searchproperty=(action (mut searchproperty) value="target.selectedItems")
        }}
      />
    {{/if}}
    <DataCollection
      @type="upstream-instance"
      @sort={{sort}}
      @filters={{filters}}
      @search={{search}}
      @items={{proxy.Service.Proxy.Upstreams}}
    as |collection|>
      <collection.Collection>
        <Consul::UpstreamInstance::List
          @items={{collection.items}}
          @dc={{dc}}
          @nspace={{nspace}}
        />
      </collection.Collection>
      <collection.Empty>
        <EmptyState>
          <BlockSlot @name="body">
            <p>
              This service has no upstreams{{#if (gt proxy.Service.Proxy.Upstreams.length 0)}} matching that search{{/if}}.
            </p>
          </BlockSlot>
        </EmptyState>
      </collection.Empty>
    </DataCollection>
  {{/let}}
{{/let}}
  </div>
</div>
{'fraction_non_alphanumeric': 0.16954377311960542, 'fraction_numerical': 0.002466091245376079, 'mean_word_length': 2.478027867095391, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '7591270', 'n_tokens_mistral': 947, 'n_tokens_neox': 956, 'n_words': 177}