Skip to content

Commit

Permalink
fix: create view not using the prefer_web config value
Browse files Browse the repository at this point in the history
  • Loading branch information
FilledStacks committed Mar 11, 2024
1 parent 51b3076 commit 8b138fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/commands/create/create_view_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class CreateViewCommand extends Command with ProjectStructureValidator {
// 1. If the template is supplied we use that template
// 2. If the template is null use config web to decide
print('templateType:$templateType preferWeb:${_configService.preferWeb}');

// We assign this when it's not null so there should be no default value for this
templateType ??= _configService.preferWeb ? 'web' : 'empty';

await _templateService.renderTemplate(
Expand Down

0 comments on commit 8b138fa

Please sign in to comment.