Publishing a lab should either prompt the user to save if there are unsaved changes, or just autosave as part of publishing the lab.
Publishing a lab should either prompt the user to save if there are unsaved changes, or just autosave as part of publishing the lab.