From 577e2753bd7979badcaf23274bbb7327fa892512 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 15:08:02 +0200 Subject: deploy bundle --- app/client/modules/morph/morph.tasks.js | 1 + app/client/modules/morph/views/morph.app.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'app/client/modules') diff --git a/app/client/modules/morph/morph.tasks.js b/app/client/modules/morph/morph.tasks.js index ba0f6b9..1e938c8 100644 --- a/app/client/modules/morph/morph.tasks.js +++ b/app/client/modules/morph/morph.tasks.js @@ -8,6 +8,7 @@ import actions from '../../actions' import module from './morph.module' export const morph_task = (state, folder) => dispatch => { + if (state.a === 'PLACEHOLDER' || state.b === 'PLACEHOLDER') return const task = { module: module.name, activity: 'morph', diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js index 4a5b51b..09294a3 100644 --- a/app/client/modules/morph/views/morph.app.js +++ b/app/client/modules/morph/views/morph.app.js @@ -22,8 +22,8 @@ class MorphResults extends Component { super() this.state = { dataset_module: 'pix2pixhd', - a: "", - b: "", + a: "PLACEHOLDER", + b: "PLACEHOLDER", a_offset: 0, a_duration: 1, a_pos: 0, @@ -69,7 +69,7 @@ class MorphResults extends Component { this.setState({ b: key, b_duration: sequenceLookup[key].count, b_pos: 0, b_offset: 0 })} -- cgit v1.2.3-70-g09d2