IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Просмотр исходного кода

Resolved the problem with paths in default values for workflow parameters.

master
Stanislaw Adaszewski 4 лет назад
Родитель
Сommit
fea18bb088
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      frontend/src/js/page/wb-launch-workflow-page.js

+ 2
- 1
frontend/src/js/page/wb-launch-workflow-page.js Просмотреть файл

@@ -10,6 +10,7 @@ import linkState from 'linkstate';
import wbParseWorkflowDef from 'wb-parse-workflow-def';
import { wbParseWorkflowInputs, wbSubmitContainerRequest } from 'wb-submit-container-request';
import WBWorkflowInput from 'wb-workflow-input';
import { parseKeepRef } from 'wb-process-misc';
class WBLaunchWorkflowPage extends Component {
constructor(...args) {
@@ -30,7 +31,7 @@ class WBLaunchWorkflowPage extends Component {
const def = wbParseWorkflowDef(xhr.response.definition);
const inputs = {};
const main = def['$graph'].find(a => (a.id === '#main'));
main.inputs.map(a => (inputs[a.id] = JSON.stringify(a.default)));
main.inputs.map(a => (inputs[a.id] = JSON.stringify(parseKeepRef(a.default))));
this.setState({
'workflow': xhr.response,
'workflowDefinition': def,


Загрузка…
Отмена
Сохранить