I have 2 buttons and a gallery in my app screen. The functionality is like follows:
If button 1 is selected then gallery should show items from list1
And if button 2 is selected gallery should show items from list 2
For this I have a function on gallery's items property
If(Button1_4.Pressed,Distinct(GalVar,Resource_Group_Name),If(Button1_5.Pressed,Distinct(AzVar,ResourceName)))
Now th issue is that, When I click button 1, items appear in gallery but they disappear quickly and same behaviour is with button 2.
How to fix it?
