chore: lint

This commit is contained in:
Pranav C
2026-01-20 11:27:30 +00:00
parent 5d4cc8a2ad
commit f8f3c35d7d
3 changed files with 11 additions and 5 deletions

View File

@@ -146,8 +146,7 @@ export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () =>
const existingSortIndex = sorts.value.findIndex((s) => s.fk_column_id === column.id)
const existingSort = existingSortIndex > -1 ? sorts.value[existingSortIndex] : undefined
const isLocalMode = isPublic.value || isSharedBase.value || isLocked.value
const isLocalMode = isPublic.value || isSharedBase.value || !isUIAllowed('sortSync')
// Delete existing sort and not update the state as sort count in UI will change for a sec
if (existingSort && !isLocalMode) {
await $api.internal.postOperation(
@@ -240,8 +239,8 @@ export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () =>
async function deleteSort(sort: SortType, i: number, undo = false) {
try {
const isLocalMode = isPublic.value || isSharedBase.value || isLocked.value
if (isUIAllowed('sortSync') && sort.id && !isLocalMode) {
const isLocalMode = isPublic.value || isSharedBase.value || !isUIAllowed('sortSync')
if (sort.id && !isLocalMode) {
await $api.internal.postOperation(
meta.value!.fk_workspace_id!,
meta.value!.base_id!,

View File

@@ -105,7 +105,12 @@ export class DataAttachmentV3Service {
signedUrl: undefined,
};
processedAttachments.push(processedAttachment);
if (supportsThumbnails({ mimetype: downloadedAttachment.mimeType })) {
if (
supportsThumbnails({
mimetype: downloadedAttachment.mimeType,
size: downloadedAttachment.fileSize,
})
) {
generateThumbnailAttachments.push(processedAttachment);
}
}

View File

@@ -1,4 +1,6 @@
import { ncIsNumber } from 'nocodb-sdk';
import { imageMimeTypes } from '~/helpers/attachmentHelpers';
import { getThumbnailMaxSize } from '~/utils/nc-config/constants';
export const isOfficeDocument = (..._args) => {
return false;