mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: remove if condition
This commit is contained in:
@@ -12,14 +12,12 @@
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
{#if $project?.$id}
|
||||
<UpdateUsersLimit />
|
||||
<UpdateSessionLength />
|
||||
<UpdateSessionsLimit />
|
||||
<UpdatePasswordHistory />
|
||||
<UpdatePasswordDictionary />
|
||||
<UpdatePersonalDataCheck />
|
||||
<UpdateSessionAlerts />
|
||||
<UpdateMockNumbers />
|
||||
{/if}
|
||||
<UpdateUsersLimit />
|
||||
<UpdateSessionLength />
|
||||
<UpdateSessionsLimit />
|
||||
<UpdatePasswordHistory />
|
||||
<UpdatePasswordDictionary />
|
||||
<UpdatePersonalDataCheck />
|
||||
<UpdateSessionAlerts />
|
||||
<UpdateMockNumbers />
|
||||
</Container>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { project } from '../../store';
|
||||
|
||||
let passwordHistory = $project.authPasswordHistory < 1 ? 5 : $project.authPasswordHistory;
|
||||
let passwordHistory = $project?.authPasswordHistory < 1 ? 5 : $project?.authPasswordHistory;
|
||||
let passwordHistoryEnabled = ($project?.authPasswordHistory ?? 0) != 0;
|
||||
let initialPasswordHistoryEnabled = passwordHistoryEnabled;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { project } from '../../store';
|
||||
|
||||
const { value, unit, baseValue, units } = createTimeUnitPair($project.authDuration);
|
||||
const { value, unit, baseValue, units } = createTimeUnitPair($project?.authDuration);
|
||||
const options = units.map((v) => ({ label: v.name, value: v.name }));
|
||||
|
||||
async function updateSessionLength() {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { project } from '../../store';
|
||||
|
||||
let maxSessions = $project.authSessionsLimit;
|
||||
let maxSessions = $project?.authSessionsLimit;
|
||||
|
||||
async function updateSessionsLimit() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user