SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
140 stars 85 forks source link

Miscellaneous Tab Settings and CAD Open Graph Description Not Updating #1898

Closed MarshyMelloow closed 7 months ago

MarshyMelloow commented 7 months ago

What version of Node.js are you using?

18.19.0

What operating system are you using?

Ubuntu 22.04

What version of SnailyCAD are you currently using?

1.79.0

Describe the Bug

When modifying value in any of the settings under the Miscellaneous tab, the changes are successfully saved in the database. However, they are not reflected properly when switching to a different tab and then returning to the Miscellaneous tab. The value resets to the default, even though the updated data is saved. After a full page refresh the data displays correctly.

Additionally, the CAD Open Graph Description setting does not save at all.

Expected Behavior

  1. Changes made in the Miscellaneous tab settings should persist when switching between different setting categories.

  2. The CAD Open Graph Description setting should save.

To Reproduce

  1. Go to the Miscellaneous tab.
  2. Modify any setting value.
  3. Save Changes.
  4. Switch to a different setting category.
  5. Return to the Miscellaneous category.
  6. Notice that the modified value has reset to the default. (A full page refresh will display the correct updated value)

Regarding the CAD Open Graph Description, add some text and save the setting.

casperiv0 commented 7 months ago

Fixed now!