forked from p96170835/amis
fix conflict
This commit is contained in:
commit
f65fc630ff
|
@ -171,6 +171,7 @@ export default class MatrixCheckbox extends React.Component<
|
|||
columns: (ret.data as any).columns || []
|
||||
},
|
||||
() => {
|
||||
let replace = source && (source as ApiObject).replaceData;
|
||||
let value = (ret.data as any).value;
|
||||
if (value) {
|
||||
value = (source as ApiObject).replaceData
|
||||
|
|
|
@ -210,6 +210,7 @@ export default class Task extends React.Component<TaskProps, TaskState> {
|
|||
if (Array.isArray(ret.data)) {
|
||||
this.handleLoaded(ret);
|
||||
} else {
|
||||
let replace = api && (api as ApiObject).replaceData;
|
||||
const items = this.state.items.map(item =>
|
||||
item.key === ret.data.key
|
||||
? {
|
||||
|
|
|
@ -288,7 +288,7 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
|
|||
}
|
||||
|
||||
self.items.replace(rowsData);
|
||||
self.reInitData(data, !!(api && (api as ApiObject).replaceData));
|
||||
self.reInitData(data, !!(api as ApiObject).replaceData);
|
||||
options.syncResponse2Query !== false &&
|
||||
updateQuery(
|
||||
pick(rest, Object.keys(self.query)),
|
||||
|
|
|
@ -233,7 +233,7 @@ export const FormStore = ServiceStore.named('FormStore')
|
|||
{
|
||||
__saved: Date.now()
|
||||
},
|
||||
!!(api && (api as ApiObject).replaceData)
|
||||
!!(api as ApiObject).replaceData
|
||||
);
|
||||
self.updatedAt = Date.now();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue