mirror of
https://github.com/directus/directus.git
synced 2026-02-12 21:15:11 -05:00
fix ts errors
This commit is contained in:
@@ -124,7 +124,7 @@ export default defineComponent({
|
||||
const values = {
|
||||
...item.value,
|
||||
...edits.value,
|
||||
};
|
||||
} as Record<string, any>;
|
||||
|
||||
return !!values.admin_access;
|
||||
});
|
||||
|
||||
@@ -115,7 +115,7 @@ export default defineComponent({
|
||||
const title = computed(() => {
|
||||
if (loading.value) return i18n.t('loading');
|
||||
if (isNew.value) return i18n.t('creating_webhook');
|
||||
return item.value.name;
|
||||
return item.value?.name;
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
@@ -384,7 +384,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function refreshCurrentUser() {
|
||||
if (userStore.state.currentUser!.id === item.value.id) {
|
||||
if (userStore.state.currentUser!.id === item.value?.id) {
|
||||
await userStore.hydrate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user