Skip to content

Commit 5fc3cb6

Browse files
Fix type errors after rebase
- Add back api import to Load3dUtils (needed by fileExists and uploadThumbnail) - Add null check for result.response in uploadTempImage - Ensures type safety after rebase on main
1 parent a6987bc commit 5fc3cb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extensions/core/load3d/Load3dUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type Load3d from '@/extensions/core/load3d/Load3d'
22
import { t } from '@/i18n'
33
import { uploadMedia } from '@/platform/assets/services/uploadService'
44
import { useToastStore } from '@/platform/updates/common/toastStore'
5+
import { api } from '@/scripts/api'
56
import { app } from '@/scripts/app'
67

78
class Load3dUtils {
@@ -40,7 +41,7 @@ class Load3dUtils {
4041
{ subfolder: 'threed', type: 'temp' }
4142
)
4243

43-
if (!result.success) {
44+
if (!result.success || !result.response) {
4445
const err = `Error uploading temp file: ${result.error}`
4546
useToastStore().addAlert(err)
4647
throw new Error(err)

0 commit comments

Comments
 (0)