Skip to content

Commit 4c14e57

Browse files
aotf: prevent the "offset" field from being filled in
* Closes #1222 * Note this solution is hardcoded in the UI and must stay that way until #1225 is done.
1 parent 21b773b commit 4c14e57

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils/aotf.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,14 @@ export function getMutationArgsFromTokens (mutation, tokens) {
806806
const alternate = alternateFields[arg._cylcType]
807807
for (let token in tokens) {
808808
if (arg._cylcObject && [token, alternate].includes(arg._cylcObject)) {
809+
if (arg.name === 'cutoff') {
810+
// Work around for a field we don't want filled in, see:
811+
// * https://github.com/cylc/cylc-ui/issues/1222
812+
// * https://github.com/cylc/cylc-ui/issues/1225
813+
// TODO: Once #1225 is done the field type can be safely changed in
814+
// the schema without creating a compatibility issue with the UIS.
815+
continue
816+
}
809817
if (arg._cylcObject === alternate) {
810818
token = alternate
811819
}

0 commit comments

Comments
 (0)