mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:45:07 +00:00
chore: lint
This commit is contained in:
@@ -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!,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user