Hello, i have weird problem
this is my code
import arcpy
aprx = arcpy.mp.ArcGISProject("CURRENT")
maps = aprx.listMaps("Layers4")
if maps:
m = maps[0]
for lyr in m.listLayers("Land Boundary"):
if lyr.supports("DEFINITIONQUERY"):
lyr.definitionQuery = "Flurstueck = 1237"
and it creates Definition query in my layer properly

sadly it doesnt work on itself and i have to manually click apply otherwise map disappears and is white.
I assume its bug, please help
additional info:
even tho definition query is created, i get info

ArcGis Pro versions that i tired with 3.0.2 and 3.4