Skip to content

Commit

Permalink
fixed export function
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdomfreak-1 committed May 19, 2024
1 parent 44473c7 commit c9d8886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Binary file removed static/test.png
Binary file not shown.
9 changes: 3 additions & 6 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,13 @@ <h2 class="mt-6 text-center text-3xl font-extrabold text-white">Sign in to your
return response.json();
})
.then(data => {
// Assuming data is an array with at least one element
const selectedOrg = data[0];
const org = data[0];

// Set the selectedOrg in local storage
localStorage.setItem('selectedOrg', selectedOrg);
console.log('Selected organization stored in local storage:', selectedOrg);
localStorage.setItem('org', org);
console.log('Selected organization stored in local storage:', org);
})
.catch(error => {
console.error('Error fetching data:', error);
// Handle fetch errors here
});
}

Expand Down

0 comments on commit c9d8886

Please sign in to comment.