mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
refactor: remove unused code
This commit is contained in:
parent
05fb9e74b0
commit
a7b3fd34b7
2 changed files with 1 additions and 10 deletions
|
|
@ -236,13 +236,6 @@ export function isTooljetVersionWithNormalizedAppDefinitionSchem(version) {
|
|||
return semver.satisfies(semver.coerce(version), '>= 2.24.0');
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a given Tooljet version is compatible with the grid compatibility fix.
|
||||
*/
|
||||
export function shouldApplyGridCompatibilityFix(version) {
|
||||
return semver.satisfies(semver.coerce(version), '>= 2.24.0 < 2.27.8');
|
||||
}
|
||||
|
||||
export function isVersionGreaterThanOrEqual(version1: string, version2: string) {
|
||||
if (!version1) return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import {
|
|||
catchDbException,
|
||||
extractMajorVersion,
|
||||
isTooljetVersionWithNormalizedAppDefinitionSchem,
|
||||
shouldApplyGridCompatibilityFix,
|
||||
isVersionGreaterThanOrEqual,
|
||||
resolveGridPositionForComponent,
|
||||
} from 'src/helpers/utils.helper';
|
||||
|
|
@ -238,8 +237,7 @@ export class AppImportExportService {
|
|||
? true
|
||||
: isTooljetVersionWithNormalizedAppDefinitionSchem(importedAppTooljetVersion);
|
||||
|
||||
const shouldUpdateForGridCompatibility: boolean =
|
||||
!cloning && shouldApplyGridCompatibilityFix(importedAppTooljetVersion);
|
||||
const shouldUpdateForGridCompatibility = !cloning;
|
||||
|
||||
const importedApp = await this.createImportedAppForUser(this.entityManager, schemaUnifiedAppParams, user);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue