davinci icon indicating copy to clipboard operation
davinci copied to clipboard

eslint error: dispatch(checkNameUniqueAction(pathname, data, resolve, reject))

Open loqinyahuive opened this issue 3 years ago • 2 comments

hi, I have an eslint error and need help. code: dispatch(checkNameUniqueAction(pathname, data, resolve, reject)), Error message: Argument of type '{ type: string; payload: { pathname: any; data: any; resolve: any; reject: any; }; }' is not assignable to parameter of type 'Action'. Type '{ type: string; payload: { pathname: any; data: any; resolve: any; reject: any; }; }' is not assignable to type '{ type: "LOAD_DATASOURCES_INFO_FAILURE"; payload: { err: any; }; }'. Types of property 'type' are incompatible. Type 'string' is not assignable to type '"LOAD_DATASOURCES_INFO_FAILURE"'.

loqinyahuive avatar May 12 '21 07:05 loqinyahuive

Please post your code to help troubleshooting.

scottsut avatar May 13 '21 14:05 scottsut

Please post your code to help troubleshooting. ok. Here is a screenshot of the eslint error and the git branch code image image


git: https://github.com/loqinyahuive/davinci

loqinyahuive avatar May 14 '21 06:05 loqinyahuive