Initialization of values when posting into DB #2025
Unanswered
MiraeKim1031
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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