fix(frontend): stream uploads page error fix (#1080)

This commit is contained in:
Kristaps Fabians Geikins
2022-10-05 18:31:21 +03:00
committed by GitHub
parent 2aefbd27e1
commit facbde93bf
@@ -192,9 +192,9 @@ export default {
setup() {
const { result } = useQuery(ServerInfoBlobSizeLimitDocument)
const blobSizeLimitBytes = computed(
() => result.value?.serverInfo.blobSizeLimitBytes
() => result.value?.serverInfo.blobSizeLimitBytes || 1
)
const fileSizeLimit = computed(blobSizeLimitBytes.value / 1024 / 1024 || 100)
const fileSizeLimit = computed(() => blobSizeLimitBytes.value / 1024 / 1024)
return { blobSizeLimitBytes, fileSizeLimit }
},
data() {