Merge branch 'fix/dynamic-view-bindings' into 'release'

Fix table widget render issue

See merge request theappsmith/internal-tools-client!145
This commit is contained in:
Hetu Nandu 2019-11-14 12:16:12 +00:00
commit b9e3390416
3 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export function* initializeAppViewerSaga(
type: ReduxActionTypes.FETCH_PUBLISHED_PAGE_INIT,
payload: action.payload,
});
yield take(ReduxActionTypes.FETCH_PUBLISHED_PAGE_SUCCESS);
yield take(ReduxActionTypes.UPDATE_CANVAS);
yield put({
type: ReduxActionTypes.INITIALIZE_EDITOR_SUCCESS,
});

View File

@ -259,7 +259,10 @@ export default function* pageSagas() {
ReduxActionTypes.UPDATE_WIDGET_PROPERTY,
updateWidgetPropertySaga,
),
takeLatest(ReduxActionTypes.UPDATE_WIDGET_DYNAMIC_PROPERTY, saveLayoutSaga),
takeLatest(
ReduxActionTypes.UPDATE_WIDGET_DYNAMIC_PROPERTY,
updateWidgetPropertySaga,
),
takeLatest(ReduxActionTypes.CREATE_PAGE_INIT, createPageSaga),
takeLatest(ReduxActionTypes.FETCH_PAGE_LIST_INIT, fetchPageListSaga),
]);

View File

@ -70,6 +70,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
);
}
componentDidUpdate(prevProps: TableWidgetProps) {
super.componentDidUpdate(prevProps);
const { tableData, selectedRow } = this.props;
const newData = getTableArrayData(tableData);
if (