Remove attributes the correct way

This commit is contained in:
Anton Thomasson 2022-01-23 12:52:34 +01:00
parent afb8d65ea8
commit 8ae48b83e6

View file

@ -61,7 +61,7 @@ Page {
onClicked: {
var tmp = jobParams;
// Varies between documents, would be confusing to save
tmp["page-ranges"] = undefined;
delete tmp["page-ranges"];
db.setJobSettings(printer.attrs["printer-uuid"].value, selectedFileType, JSON.stringify(tmp))
}
}