Skip to content

Commit 45046dc

Browse files
committed
fix: streamline component preview URL generation in LightningDevComponent
1 parent 9cdffdf commit 45046dc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/commands/lightning/dev/component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,7 @@ export default class LightningDevComponent extends SfCommand<ComponentPreviewRes
167167
// strip trailing slashes
168168
const instanceUrl = connection.instanceUrl.replace(/\/$/, '');
169169

170-
const previewUrl = PreviewUtils.generateComponentPreviewUrl(
171-
instanceUrl,
172-
ldpServerUrl,
173-
ldpServerId,
174-
componentName,
175-
false
176-
);
170+
const previewUrl = PreviewUtils.generateComponentPreviewUrl(instanceUrl, ldpServerUrl, ldpServerId, componentName);
177171

178172
// Prepare the result for JSON output
179173
const result: ComponentPreviewResult = {

0 commit comments

Comments
 (0)