You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several layout items that appear and disappear based on the activation of checkboxes. The layouts are temporarily stored on a json-server (local) via axios. When making an item reappear after it has disappeared, I default to providing a width (w) of 6 and a height (h) of 2. This approach is effective at times. However, occasionally, when toggling a checkbox off and then on again, the items are saved in the database with w: 1, h: 1, x: 0, y: 0. This does not happen every time but occurs sporadically, and I am unable to determine the reason.
shownObjects is an object containing the rendering boolean values for the items.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have several layout items that appear and disappear based on the activation of checkboxes. The layouts are temporarily stored on a json-server (local) via axios. When making an item reappear after it has disappeared, I default to providing a width (w) of 6 and a height (h) of 2. This approach is effective at times. However, occasionally, when toggling a checkbox off and then on again, the items are saved in the database with w: 1, h: 1, x: 0, y: 0. This does not happen every time but occurs sporadically, and I am unable to determine the reason.
shownObjects is an object containing the rendering boolean values for the items.
Here's the code snippet:
Beta Was this translation helpful? Give feedback.
All reactions