Merge remote-tracking branch 'origin/master' into s3-upload-fixes
This commit is contained in:
commit
b15399ab81
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||||
"version": "3.2.29",
|
"version": "3.2.32",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"concurrency": 20,
|
"concurrency": 20,
|
||||||
"command": {
|
"command": {
|
||||||
|
|
|
@ -291,8 +291,8 @@ const automationActions = (store: AutomationStore) => ({
|
||||||
let result: (AutomationStep | AutomationTrigger)[] = []
|
let result: (AutomationStep | AutomationTrigger)[] = []
|
||||||
pathWay.forEach(path => {
|
pathWay.forEach(path => {
|
||||||
const { stepIdx, branchIdx } = path
|
const { stepIdx, branchIdx } = path
|
||||||
let last = result ? result[result.length - 1] : []
|
let last = result.length ? result[result.length - 1] : []
|
||||||
if (!result) {
|
if (!result.length) {
|
||||||
// Preceeding steps.
|
// Preceeding steps.
|
||||||
result = steps.slice(0, stepIdx + 1)
|
result = steps.slice(0, stepIdx + 1)
|
||||||
return
|
return
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
: RelationshipType.MANY_TO_MANY,
|
: RelationshipType.MANY_TO_MANY,
|
||||||
}
|
}
|
||||||
|
|
||||||
async function searchFunction(searchParams) {
|
async function searchFunction(_tableId, searchParams) {
|
||||||
if (
|
if (
|
||||||
subtype !== BBReferenceFieldSubType.USER &&
|
subtype !== BBReferenceFieldSubType.USER &&
|
||||||
subtype !== BBReferenceFieldSubType.USERS
|
subtype !== BBReferenceFieldSubType.USERS
|
||||||
|
|
|
@ -151,6 +151,35 @@ export const initialise = (context: StoreContext) => {
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
function sortHasChanged(
|
||||||
|
newSort: {
|
||||||
|
column: string | null | undefined
|
||||||
|
order: SortOrder
|
||||||
|
},
|
||||||
|
existingSort?: {
|
||||||
|
field: string
|
||||||
|
order?: SortOrder
|
||||||
|
}
|
||||||
|
) {
|
||||||
|
const newColumn = newSort.column ?? null
|
||||||
|
const existingColumn = existingSort?.field ?? null
|
||||||
|
if (newColumn !== existingColumn) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!newColumn) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
const newOrder = newSort.order ?? null
|
||||||
|
const existingOrder = existingSort?.order ?? null
|
||||||
|
if (newOrder !== existingOrder) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// When sorting changes, ensure view definition is kept up to date
|
// When sorting changes, ensure view definition is kept up to date
|
||||||
unsubscribers.push(
|
unsubscribers.push(
|
||||||
sort.subscribe(async $sort => {
|
sort.subscribe(async $sort => {
|
||||||
|
@ -161,10 +190,7 @@ export const initialise = (context: StoreContext) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip if nothing actually changed
|
// Skip if nothing actually changed
|
||||||
if (
|
if (!sortHasChanged($sort, $view.sort)) {
|
||||||
$sort?.column === $view.sort?.field &&
|
|
||||||
$sort?.order === $view.sort?.order
|
|
||||||
) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue