chore: tweaks

This commit is contained in:
Tristan Yang
2023-03-13 18:32:06 +08:00
parent ebfc362705
commit 0bf167e4e8
7 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export default function Overview({ id = 0 }) {
}
}, [changeTypeSuccess]);
if (!values || !id) return null;
if (!values || !id || !channel) return null;
const { name, description } = values;
const readOnly = !loginUser?.is_admin && channel?.owner != loginUser?.uid;
const inputClass = `w-full flex flex-col items-start gap-2 relative`;