searchRemove: function()

in webapp/components/flow-design-system/fds-demo.js [898:907]


    searchRemove: function (searchTerm) {
        //only remove the first occurrence of the search term
        const index = this.searchTerm.indexOf(searchTerm);
        if (index !== -1) {
            this.searchTerm.splice(index, 1);
        }
        this.fromRow = 1;
        this.currentPage = 1;
        this.filter();
    },