small update:
found this forum answer saying there is an option in the Dataview Settings where you can turn off the “Warn on Empty Results” universally for all notes in the vault.
Though I don’t want to do that for all notes. Is there a way I can use dataviewjs to not show the No result warning?