Skip to content

Commit 4c3ff70

Browse files
committed
fix: small fix
1 parent e2943cd commit 4c3ff70

File tree

1 file changed

+2
-4
lines changed
  • packages/devextreme-schematics/src/add-layout

1 file changed

+2
-4
lines changed

packages/devextreme-schematics/src/add-layout/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,10 @@ function modifyContentByTemplate(
273273
};
274274
}
275275

276-
function updateDevextremeConfig(host: Tree, sourcePath: string = '') {
276+
function updateDevextremeConfig(sourcePath: string = '') {
277277
const devextremeConfigPath = '/devextreme.json';
278-
const postfix = isAngularVersionHigherThan(host, 20) ? 'test' : 'component';
279278
const templateOptions = {
280279
sourcePath,
281-
postfix
282280
};
283281

284282
const modifyConfig = (templateContent: string, currentContent: string) => {
@@ -349,7 +347,7 @@ export default function(options: any): Rule {
349347

350348
const rules = [
351349
modifyContentByTemplate(sourcePath, projectFilesSource, null, templateOptions, modifyContent),
352-
updateDevextremeConfig(host, sourcePath),
350+
updateDevextremeConfig(sourcePath),
353351
updateAppComponent(host, appPath, templateOptions),
354352
addBuildThemeScript(),
355353
() => addCustomThemeStyles(host, options, sourcePath) as any,

0 commit comments

Comments
 (0)