Skip to content

Commit

Permalink
skip preview steps if preview-layout isn't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ehg committed May 26, 2016
1 parent 5f4fc8c commit 2c254a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/layout/guided-tours/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import React from 'react';
/**
* Internal dependencies
*/
import config from 'config';
import i18n from 'lib/mixins/i18n';

function get() {
Expand Down Expand Up @@ -39,7 +40,7 @@ function get() {
type: 'BasicStep',
target: 'sidebar',
placement: 'beside',
next: 'preview',
next: config.isEnabled( 'preview-layout' ) ? 'preview' : 'themes',
},
preview: {
target: 'site-card-preview',
Expand Down

0 comments on commit 2c254a0

Please sign in to comment.