Fix workflow ID type on download (#1956)

This commit is contained in:
Iván Ovejero
2021-07-10 23:23:19 +02:00
committed by GitHub
parent de3b5608ca
commit 922880f93d
2 changed files with 5 additions and 2 deletions

View File

@@ -408,6 +408,9 @@ export default mixins(
const workflowData = await this.getWorkflowDataToSave();
const {tags, ...data} = workflowData;
if (data.id && typeof data.id === 'string') {
data.id = parseInt(data.id, 10);
}
const blob = new Blob([JSON.stringify(data, null, 2)], {
type: 'application/json;charset=utf-8',
});