File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
frontend/src/app/pages/DashBoardPage Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export interface WidgetInfo {
194194 inLinking : boolean ; //是否在触发联动
195195 selected : boolean ;
196196 pageInfo : Partial < PageInfo > ;
197- errInfo ? : { [ propName : string ] : string } ;
197+ errInfo : { [ propName : string ] : string } ;
198198 selectItems ?: string [ ] ;
199199 parameters ?: any ;
200200}
Original file line number Diff line number Diff line change @@ -250,13 +250,15 @@ const widgetInfoRecordSlice = createSlice({
250250 } > ,
251251 ) {
252252 const { widgetId, errInfo, errorType } = action . payload ;
253- let errorObj = state [ widgetId ] . errInfo || { } ;
253+ let errorObj = state [ widgetId ] ? .errInfo || { } ;
254254 if ( errInfo ) {
255255 errorObj [ errorType ] = errInfo ;
256256 } else {
257257 delete errorObj [ errorType ] ;
258258 }
259- state [ widgetId ] . errInfo = errorObj ;
259+ if ( state [ widgetId ] ?. errInfo ) {
260+ state [ widgetId ] . errInfo = errorObj ;
261+ }
260262 } ,
261263 } ,
262264 extraReducers : builder => {
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ export const createWidgetInfo = (id: string): WidgetInfo => {
234234 editing : false ,
235235 inLinking : false ,
236236 selected : false ,
237+ errInfo : { } ,
237238 rendered : false ,
238239 pageInfo : {
239240 pageNo : 1 ,
You can’t perform that action at this time.
0 commit comments