Recently, I attempted to trim the response value within a Vue condition.
I require this functionality to apply the condition when the value is null or empty.
<li v-if="item[0].otrodl4.trim() == ''" class="progress-step">
Unfortunately, I encountered an error.
vue.js:597 [Vue warn]: Error in render: "TypeError: Cannot read property 'trim' of null"
The issue lies in some values containing only whitespace, which should be treated as null or empty.
For example:
https://i.sstatic.net/2eul8.png
I attempted to use filters, but still received the same error.
Thank you for reading.
Best regards.