massif-press / compcon

Digital character creator and player sheets for the LANCER TTRPG
https://compcon.app
GNU General Public License v3.0
271 stars 98 forks source link

Fix mission runner page refresh race condition. #2431

Open ira-peach opened 2 months ago

ira-peach commented 2 months ago

Description

The Vue container in Active.vue was trying to use the MissionStore before it fully loaded, resulting in it being undefined. This adds a condition on the container to see if there is an active mission that is truthy and displays the content if it is.

If there are active missions in the store, but there are none found (e.g. the UUID for the active mission is invalid in the route path), then it will display an error message.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue Number

unknown if any

Type of change

Please delete options that are not relevant.