Repeater showing duplicates only in published, not preview

Yes, I did set it up using code! Sorry for not making that clear in the original post.

import {local} from 'wix-storage';
import wixData from 'wix-data';
import wixLocation from 'wix-location';

$w.onReady(function () {

//query function stuff
var sameWord = local.getItem("searchWord");
    $w("#iNanobodySearch").value = sameWord;
    $w("#iNanobodySearch").placeholder = sameWord;
    $w('#dynamicDataset').onReady(function() {
        search();
    local.setItem("searchWord","")
    $w("#iNanobodySearch").resetValidityIndication();
    $w("#iNanobodySearch").placeholder = "Search antigen name, sequence, or more";
    });
});


export function button5_click(event) {
        $w('#dynamicDataset').onReady(function() {
            search();
        });
}

function search() {
    wixData.query('Antigens')
    .limit(20)
    .contains('antigen',$w("#iNanobodySearch").value)
    .or(wixData.query('Antigens').contains('alternativeGeneNames',$w("#iNanobodySearch").value))
    .or(wixData.query('Antigens').contains('fullProteinName',$w("#iNanobodySearch").value))
    .or(wixData.query('Antigens').contains('uniprotId',$w("#iNanobodySearch").value))
        .find()
        .then(res =>{
 
            $w('#repeater1').data = res.items;

 //below pulls up no results display if necessary
 if (res.items.length) {
             $w('#columnStrip11').collapse();
             $w('#columnStrip12').expand();
             }
 else  {$w('#columnStrip11').expand();
       $w('#columnStrip12').collapse();
         }
    });

}

export function repeater1_itemReady($item, itemData, index) {
    makeRepeater();
}

export function makeRepeater() {
    $w("#repeater1").forEachItem( ($item, itemData, index) => {
 //variables for editing repeater
 let alternativeGeneNames= itemData.alternativeGeneNames;//text is the field you want to get its text
            $item("#text27").text = alternativeGeneNames; 
});
}


https://www.ringlabyale . com