I have two arrays, array1 has all objects and array2 has filtered objects based on a search string.
Currently I am rendering array2 (which will contain all objects from a