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": {
"beta": "Beta",
"user": "User",
"currentUser": "Current user",
"empty": "Empty",

View File

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

View File

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