@xeplr/ui-jobs 1.6.7 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/ui-jobs",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "The screens for @xeplr/jobs — schedule, run, pause and watch jobs — as routes a host app registers, or a standalone app",
5
5
  "type": "module",
6
6
  "main": "src/index.jsx",
@@ -1097,7 +1097,9 @@ export default function Jobs({ breadcrumb: Breadcrumb, uploadLink } = {}) {
1097
1097
  // A new job filled in from a link is checked against the actions,
1098
1098
  // so it starts again once they have loaded.
1099
1099
  key={url.edit + (url.edit === 'new' && actions.length ? ':ready' : '')}
1100
- job={editing.id ? editing : null}
1100
+ // A new job is passed too: it may carry its action, inputs and name
1101
+ // from a link (newJobFrom). Without an id it is still a new job.
1102
+ job={editing}
1101
1103
  jobs={jobs || []}
1102
1104
  actions={actions}
1103
1105
  stepKey={url.step}