Skip to content

Commit 58e2f76

Browse files
committed
Adds space after ,
1 parent b5e047b commit 58e2f76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/projects/projectId/data-browser/SearchGroups.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ export default function SearchGroups() {
702702
{fullSearchStore[group.key] && <div className="flex-grow flex flex-col">
703703
<div>Manually labeled</div>
704704
{fullSearchStore[group.key].groupElements['manualLabels'] && fullSearchStore[group.key].groupElements['manualLabels'].length == 0 ? (<ButtonLabelsDisabled />) : (
705-
<Dropdown2 options={fullSearchStore[group.key].groupElements['manualLabels'] ?? []} buttonName={manualLabels.length == 0 ? 'None selected' : manualLabels.join(',')} hasCheckboxesThreeStates={true} keepDrownOpen={true}
705+
<Dropdown2 options={fullSearchStore[group.key].groupElements['manualLabels'] ?? []} buttonName={manualLabels.length == 0 ? 'None selected' : manualLabels.join(', ')} hasCheckboxesThreeStates={true} keepDrownOpen={true}
706706
selectedOption={(option: any) => {
707707
const labels = [...manualLabels, option.name]
708708
setManualLabels(labels);
@@ -712,7 +712,7 @@ export default function SearchGroups() {
712712

713713
<div className="mt-2">Weakly supervised</div>
714714
{fullSearchStore[group.key].groupElements['weakSupervisionLabels'] && fullSearchStore[group.key].groupElements['weakSupervisionLabels'].length == 0 ? (<ButtonLabelsDisabled />) : (
715-
<Dropdown2 options={fullSearchStore[group.key].groupElements['weakSupervisionLabels'] ?? []} buttonName={weakSupervisionLabels.length == 0 ? 'None selected' : weakSupervisionLabels.join(',')} hasCheckboxesThreeStates={true}
715+
<Dropdown2 options={fullSearchStore[group.key].groupElements['weakSupervisionLabels'] ?? []} buttonName={weakSupervisionLabels.length == 0 ? 'None selected' : weakSupervisionLabels.join(', ')} hasCheckboxesThreeStates={true}
716716
selectedOption={(option: any) => {
717717
const labels = [...weakSupervisionLabels, option.name]
718718
setWeakSupervisionLabels(labels);
@@ -740,7 +740,7 @@ export default function SearchGroups() {
740740

741741
<div className="mt-2">Model callback</div>
742742
{fullSearchStore[group.key].groupElements['modelCallbackLabels'] && fullSearchStore[group.key].groupElements['modelCallbackLabels'].length == 0 ? (<ButtonLabelsDisabled />) : (
743-
<Dropdown2 options={fullSearchStore[group.key].groupElements['modelCallbackLabels'] ?? []} buttonName={modelCallBacksLabels.length == 0 ? 'None selected' : modelCallBacksLabels.join(',')} hasCheckboxesThreeStates={true}
743+
<Dropdown2 options={fullSearchStore[group.key].groupElements['modelCallbackLabels'] ?? []} buttonName={modelCallBacksLabels.length == 0 ? 'None selected' : modelCallBacksLabels.join(', ')} hasCheckboxesThreeStates={true}
744744
selectedOption={(option: any) => {
745745
const labels = [...modelCallBacksLabels, option.name]
746746
setModelCallBacksLabels(labels);

src/components/projects/projectId/settings/embeddings/AddNewEmbeddingModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default function AddNewEmbeddingModal() {
224224
<Tooltip content={TOOLTIPS_DICT.PROJECT_SETTINGS.EMBEDDINGS.FILTER_ATTRIBUTES} placement="right" color="invert">
225225
<span className="card-title mb-0 label-text flex"><span className="cursor-help underline filtersUnderline">Filter Attributes</span></span>
226226
</Tooltip>
227-
<Dropdown2 options={filteredAttributesArray} buttonName={filteredAttributes.length == 0 ? 'None selected' : filteredAttributes.join(',')} hasCheckboxes={true} hasSelectAll={true}
227+
<Dropdown2 options={filteredAttributesArray} buttonName={filteredAttributes.length == 0 ? 'None selected' : filteredAttributes.join(', ')} hasCheckboxes={true} hasSelectAll={true}
228228
selectedOption={(option: any) => {
229229
const filteredAttributes = [];
230230
option.forEach((a: any) => {

src/components/projects/projectId/settings/embeddings/FilterAttributesModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function FilterAttributesModal(props: FilterAttributesModalProps)
5757
</div>}
5858
{modalFilteredAttributes.showEditOption && <div className="mt-3">
5959
<div className="text-xs text-gray-500 text-center italic">Add or remove filter attributes</div>
60-
<Dropdown2 options={usableAttributes} buttonName={props.filterAttributesUpdate.length == 0 ? 'None selected' : props.filterAttributesUpdate.join(',')} hasCheckboxes={true}
60+
<Dropdown2 options={usableAttributes} buttonName={props.filterAttributesUpdate.length == 0 ? 'None selected' : props.filterAttributesUpdate.join(', ')} hasCheckboxes={true}
6161
selectedCheckboxes={checkedAttributes.map(a => a.checked)} hasSelectAll={true}
6262
selectedOption={(option: any) => {
6363
const attributes = option.filter((o: any) => o.checked).map((o: any) => o.name);

0 commit comments

Comments
 (0)