I used an array of rectangles and a difference boolean modifier to cut a shape, but when I disable the rectangles in renders it removes the boolean effect. [Here's the file](https://pasteall.org/blend/08a69da6ea2b4823bbe1fc633cf7af88)

The model
[![The model](https://i.stack.imgur.com/IdN8u.png)](https://i.stack.imgur.com/IdN8u.png)

How I want it to look
[![How I want it to look](https://i.stack.imgur.com/RVoeh.jpg)](https://i.stack.imgur.com/RVoeh.jpg)

How it renders
[![How it renders](https://i.stack.imgur.com/kGu8t.jpg)](https://i.stack.imgur.com/kGu8t.jpg)