fix(web): undefined release (#19455)

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
pull/19459/head
Daimolean 2025-06-23 20:13:08 +08:00 committed by GitHub
parent 20d9204ada
commit 813186e618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@
const semverToName = ({ major, minor, patch }: ServerVersionResponseDto) => `v${major}.${minor}.${patch}`;
const { release } = websocketStore;
const handleRelease = async (release: ReleaseEvent) => {
if (!release.isAvailable || !$user.isAdmin) {
const handleRelease = async (release?: ReleaseEvent) => {
if (!release?.isAvailable || !$user.isAdmin) {
return;
}