Merge branch 'master' into bug/budi-7689-cdn-issues-attachment-filtering
This commit is contained in:
commit
d4270181cf
|
@ -103,7 +103,6 @@ const fetchRowHandler = async action => {
|
||||||
|
|
||||||
const deleteRowHandler = async action => {
|
const deleteRowHandler = async action => {
|
||||||
const { tableId, rowId: rowConfig, notificationOverride } = action.parameters
|
const { tableId, rowId: rowConfig, notificationOverride } = action.parameters
|
||||||
|
|
||||||
if (tableId && rowConfig) {
|
if (tableId && rowConfig) {
|
||||||
try {
|
try {
|
||||||
let requestConfig
|
let requestConfig
|
||||||
|
@ -129,9 +128,11 @@ const deleteRowHandler = async action => {
|
||||||
requestConfig = [parsedRowConfig]
|
requestConfig = [parsedRowConfig]
|
||||||
} else if (Array.isArray(parsedRowConfig)) {
|
} else if (Array.isArray(parsedRowConfig)) {
|
||||||
requestConfig = parsedRowConfig
|
requestConfig = parsedRowConfig
|
||||||
|
} else if (Number.isInteger(parsedRowConfig)) {
|
||||||
|
requestConfig = [String(parsedRowConfig)]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!requestConfig.length) {
|
if (!requestConfig && !parsedRowConfig) {
|
||||||
notificationStore.actions.warning("No valid rows were supplied")
|
notificationStore.actions.warning("No valid rows were supplied")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue