FIX: ai-image-caption should not crash on checking currentUser can_use_assistant (#523)

This commit is contained in:
Kelv 2024-03-12 16:40:30 +08:00 committed by GitHub
parent a03bc6ddec
commit d57212475c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default apiInitializer("1.25.0", (api) => {
if (
!settings.ai_helper_enabled_features.includes("image_caption") ||
!currentUser.can_use_assistant
!currentUser?.can_use_assistant
) {
return;
}