I am trying to write a filter to perform specific rendering from state data and had previously had v-if inside a v-for which is bad practice and causing me performannce issu