mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 04:00:48 +01:00
fix: issue updating datetime cells with null value, closes #423
This commit is contained in:
parent
39326eb52e
commit
ebc325ae0c
@ -177,7 +177,10 @@ export default (connections: {[key: string]: antares.Client}) => {
|
|||||||
if (typeof orgRow[key] === 'string')
|
if (typeof orgRow[key] === 'string')
|
||||||
orgRow[key] = `'${orgRow[key]}'`;
|
orgRow[key] = `'${orgRow[key]}'`;
|
||||||
|
|
||||||
orgRow[key] = `= ${orgRow[key]}`;
|
if (orgRow[key] === null)
|
||||||
|
orgRow[key] = `IS ${orgRow[key]}`;
|
||||||
|
else
|
||||||
|
orgRow[key] = `= ${orgRow[key]}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
await connections[params.uid]
|
await connections[params.uid]
|
||||||
|
@ -442,7 +442,7 @@ const editOFF = () => {
|
|||||||
let content;
|
let content;
|
||||||
if (!BLOB.includes(editingType.value)) {
|
if (!BLOB.includes(editingType.value)) {
|
||||||
if ([...DATETIME, ...TIME].includes(editingType.value)) {
|
if ([...DATETIME, ...TIME].includes(editingType.value)) {
|
||||||
if (editingContent.value.substring(editingContent.value.length - 1) === '.')
|
if (editingContent.value !== null && editingContent.value.substring(editingContent.value.length - 1) === '.')
|
||||||
editingContent.value = editingContent.value.slice(0, -1);
|
editingContent.value = editingContent.value.slice(0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user