Bug fix for saving a post comment and the post data not being ready.

This commit is contained in:
Scott Idem
2025-03-04 12:26:45 -05:00
parent 7e92613536
commit 33bc99c2bd
4 changed files with 159 additions and 125 deletions

View File

@@ -364,7 +364,7 @@ if (browser) {
// Check if in the array of: super > manager > administrator > trusted > public > authenticated > anonymous
const access_type_li = ['super', 'manager', 'administrator', 'trusted', 'public', 'authenticated', 'anonymous'];
$effect(() => {
if (browser && $ae_loc.access_type && access_type_li.includes($ae_loc.access_type)) {
if (browser && $ae_loc.access_type && access_type_li.includes($ae_loc.access_type)) {
document.getElementsByTagName('html')[0].classList.remove('super_access', 'manager_access', 'administrator_access', 'trusted_access', 'public_access', 'authenticated_access', 'anonymous_access');
document.getElementsByTagName('html')[0].classList.add(`${$ae_loc.access_type}_access`);
} else if (browser) {