We should remove that reexport and standardize the import

This commit is contained in:
DrJKL
2025-12-01 11:45:12 -08:00
parent aa13e4c385
commit 585e47f2df
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
{ {
"g": { "g": {
"beta": "Beta",
"user": "User", "user": "User",
"currentUser": "Current user", "currentUser": "Current user",
"empty": "Empty", "empty": "Empty",

View File

@@ -43,10 +43,9 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { cn } from '@comfyorg/tailwind-utils'
import AssetCard from '@/platform/assets/components/AssetCard.vue' import AssetCard from '@/platform/assets/components/AssetCard.vue'
import type { AssetDisplayItem } from '@/platform/assets/composables/useAssetBrowser' import type { AssetDisplayItem } from '@/platform/assets/composables/useAssetBrowser'
import { cn } from '@/utils/tailwindUtil'
defineProps<{ defineProps<{
assets: AssetDisplayItem[] assets: AssetDisplayItem[]

View File

@@ -296,6 +296,9 @@ function createAssetService() {
): Promise<string> { ): Promise<string> {
const res = await api.fetchApi(`${ASSETS_ENDPOINT}/${id}`, { const res = await api.fetchApi(`${ASSETS_ENDPOINT}/${id}`, {
method: 'PUT', method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(newData) body: JSON.stringify(newData)
}) })
@@ -304,7 +307,7 @@ function createAssetService() {
`Unable to update asset ${id}: Server returned ${res.status}` `Unable to update asset ${id}: Server returned ${res.status}`
) )
} }
return res.json() return await res.json()
} }
/** /**