Skip to content

Commit

Permalink
Conversion Host Settings page: Ensure task.meta will always be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mturley committed Mar 13, 2019
1 parent 728ea56 commit 6d8a97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/react/screens/App/Settings/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const parseConversionHostTasksMetadata = tasks => {
if (!tasks) return [];
return tasks.map(task => {
const result = taskNameRegex.exec(task.name);
if (!result) return task;
if (!result) return { ...task, meta: {} };
const [, operation, resourceName, resourceType, resourceId] = result;
return {
...task,
Expand Down

0 comments on commit 6d8a97d

Please sign in to comment.