fix(frontend): serverContextの値を利用する条件が間違っていたのを修正 (#15166)

This commit is contained in:
かっこかり 2024-12-22 13:36:17 +09:00 committed by GitHub
parent f123be38b9
commit 3c81926f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ import { serverContext, assertServerContext } from '@/server-context.js';
import { $i } from '@/account.js';
// context
const CTX_NOTE = $i && assertServerContext(serverContext, 'note') ? serverContext.note : null;
const CTX_NOTE = !$i && assertServerContext(serverContext, 'note') ? serverContext.note : null;
const props = defineProps<{
noteId: string;