Merge pull request #14921 from Budibase/cheeks-fixes
Conditions reactivity fix + row actions improvement
This commit is contained in:
commit
7731aa4108
|
@ -554,7 +554,12 @@
|
|||
cachedSettings = { ...allSettings }
|
||||
initialSettings = cachedSettings
|
||||
} else {
|
||||
Object.keys(allSettings).forEach(key => {
|
||||
// We need to compare all keys from both the current and previous settings, as
|
||||
// keys may have disappeared in the current set which would otherwise be ignored
|
||||
// if we only checked the current set keys
|
||||
const keys = new Set(Object.keys(allSettings))
|
||||
Object.keys(cachedSettings).forEach(key => keys.add(key))
|
||||
keys.forEach(key => {
|
||||
const same = propsAreSame(allSettings[key], cachedSettings[key])
|
||||
if (!same) {
|
||||
// Updated cachedSettings (which is assigned by reference to
|
||||
|
|
|
@ -500,6 +500,10 @@ const rowActionHandler = async action => {
|
|||
sourceId: resourceId,
|
||||
rowId,
|
||||
})
|
||||
// Refresh related datasources
|
||||
await dataSourceStore.actions.invalidateDataSource(resourceId, {
|
||||
invalidateRelationships: true,
|
||||
})
|
||||
}
|
||||
|
||||
const handlerMap = {
|
||||
|
|
Loading…
Reference in New Issue