 reader.onload = function(e) {
                    const yamlContent = e.target.result;
                    const data = jsyaml.load(yamlContent);

                    // Ensure empty values are not stored
                    appData = data.apps.map(app => {
                        return {
                            ...app,
                            graph_api_permissions: Array.isArray(app.graph_api_permissions) 
                                ? app.graph_api_permissions.filter(perm => perm.trim() !== 