akvo-rsr
akvo-rsr copied to clipboard
Adding Budget item results in label: Invalid pk "40" - object does not exist.
I am self-hosting running the latest code from the master branch, when adding a Budget item in the project editor I am getting **something went wrong label: Invalid pk "40" - object does not exis**t.
@punchagan Here is the console error log This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. finance [HMR] Waiting for update signal from WDS... log.js:24 Download the React DevTools for a better development experience: https://fb.me/react-devtools react-dom.development.js:21258 [HMR] Waiting for update signal from WDS... log.js:24 Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information. in TopBar (created by Context.Consumer) in Connect(TopBar) (created by Context.Consumer) in withRouter(Connect(TopBar)) (created by Root) in div (created by Root) in LastLocationProvider (created by Context.Consumer) in withRouter(LastLocationProvider) (created by Root) in Router (created by BrowserRouter) in BrowserRouter (created by Root) in Root (created by Context.Consumer) in Connect(Root) in Provider in AppContainer react-dom.development.js:506 Warning: Each child in a list should have a unique "key" prop.
Check the render method of Context.Consumer. See https://fb.me/react-warning-keys for more information.
in header (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
Warning: Each child in a list should have a unique "key" prop.
Check the render method of Editor. See https://fb.me/react-warning-keys for more information.
in Route (created by Editor)
in Editor (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
Warning: You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored tiny-warning.esm.js:11
Warning: Cannot update during an existing state transition (such as within render). Render methods should be a pure function of props and state. react-dom.development.js:506
Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.
in Component (created by Context.Consumer)
in Connect(Component) (created by TopBar)
in TopBar (created by Context.Consumer)
in Connect(TopBar) (created by Context.Consumer)
in withRouter(Connect(TopBar)) (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react-dom.development.js:506
[WDS] Hot Module Replacement enabled. client:48
[WDS] Live Reloading enabled. client:52
[WDS] Warnings while compiling. client:126
./components/AddUpdate.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/components/AddUpdate.jsx 33:9 warning 'Text' is assigned a value but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./components/ScoringField.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/components/ScoringField.jsx 2:10 warning 'intersection' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/announcements/14-01-2021.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/announcements/14-01-2021.jsx 2:18 warning 'Divider' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/actions.js Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/actions.js 62:86 warning 'getState' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/editor.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/editor.jsx 122:14 warning The closing bracket must be aligned with the opening tag (expected column 11 on the next line) react/jsx-closing-bracket-location
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/project-init-handler.js
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/project-init-handler.js 18:70 warning 'reject' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/reducer.js Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/reducer.js 176:42 warning Extra semicolon semi 208:70 warning 'index' is already declared in the upper scope no-shadow
✖ 2 problems (0 errors, 2 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section1/comp/external-projects.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section1/comp/external-projects.jsx 29:7 warning Unexpected console statement no-console 41:56 warning A form label must be associated with a control jsx-a11y/label-has-associated-control
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/section1/comp/project-picker.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section1/comp/project-picker.jsx 3:41 warning Extra semicolon semi 6:53 warning Extra semicolon semi 10:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default
✖ 3 problems (0 errors, 3 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section1/section1.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section1/section1.jsx 9:10 warning 'Route' is defined but never used no-unused-vars 15:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 28:50 warning Extra semicolon semi 341:9 warning The closing bracket must be aligned with the opening tag (expected column 7) react/jsx-closing-bracket-location
✖ 4 problems (0 errors, 4 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section10/section10.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section10/section10.jsx 10:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section11/forecasts/forecasts-stack.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section11/forecasts/forecasts-stack.jsx 10:8 warning 'InputLabel' is defined but never used no-unused-vars 12:9 warning 'Item' is assigned a value but never used no-unused-vars
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/section11/section11.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section11/section11.jsx 10:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 18:48 warning Extra semicolon semi 214:9 warning The closing bracket must be aligned with the opening tag (expected column 11) react/jsx-closing-bracket-location
✖ 3 problems (0 errors, 3 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section3/access/access.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section3/access/access.jsx 4:10 warning 'useFetch' is defined but never used no-unused-vars 155:29 warning Extra semicolon semi 181:54 warning 'b' is defined but never used no-unused-vars 200:14 warning 'e' is defined but never used no-unused-vars
✖ 4 problems (0 errors, 4 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section4/section4.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section4/section4.jsx 11:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 80:117 warning Dangerous property 'dangerouslySetInnerHTML' found react/no-danger
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/section5/disaggregations/dimension-box.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/disaggregations/dimension-box.jsx 51:9 warning Unexpected console statement no-console
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section5/disaggregations/disaggregations.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/disaggregations/disaggregations.jsx 72:32 warning 'isNew' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section5/disaggregations/taxonomy-modal.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/disaggregations/taxonomy-modal.jsx 59:15 warning Unexpected console statement no-console
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section5/indicator-nav-menu.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/indicator-nav-menu.jsx 3:17 warning 'Button' is defined but never used no-unused-vars 3:25 warning 'Tooltip' is defined but never used no-unused-vars
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/section5/indicators.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/indicators.jsx 2:25 warning 'useEffect' is defined but never used no-unused-vars 4:8 warning 'arrayMutators' is defined but never used no-unused-vars 6:18 warning 'FinalForm' is defined but never used no-unused-vars 18:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 31:8 warning 'SectionContext' is defined but never used no-unused-vars 45:27 warning 'addSetItem' is already declared in the upper scope no-shadow 45:39 warning 'removeSetItem' is already declared in the upper scope no-shadow 45:54 warning 'moveSetItem' is already declared in the upper scope no-shadow 113:131 warning 'index' is already declared in the upper scope no-shadow 260:45 warning 'validateStatus' is defined but never used no-unused-vars
✖ 10 problems (0 errors, 10 warnings) client:135 ./modules/editor/section5/periods/defaults-context.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/periods/defaults-context.jsx 1:80 warning Extra semicolon semi 2:67 warning Extra semicolon semi 3:40 warning Extra semicolon semi 6:50 warning Extra semicolon semi 7:2 warning Extra semicolon semi 9:52 warning Extra semicolon semi 10:2 warning Extra semicolon semi 13:77 warning Extra semicolon semi 14:2 warning Extra semicolon semi 16:58 warning Extra semicolon semi 17:61 warning Extra semicolon semi 22:86 warning Extra semicolon semi 24:68 warning Extra semicolon semi 26:70 warning Extra semicolon semi 28:69 warning Extra semicolon semi 29:71 warning Extra semicolon semi 30:57 warning Extra semicolon semi 31:63 warning Extra semicolon semi 32:63 warning Extra semicolon semi 38:14 warning Extra semicolon semi 40:25 warning Extra semicolon semi 42:2 warning Extra semicolon semi 50:7 warning Extra semicolon semi 53:93 warning Extra semicolon semi 55:17 warning Extra semicolon semi 76:72 warning Extra semicolon semi 77:55 warning Extra semicolon semi 78:10 warning Extra semicolon semi 79:35 warning Extra semicolon semi 80:11 warning Extra semicolon semi 88:6 warning Extra semicolon semi 89:2 warning Extra semicolon semi 92:57 warning Extra semicolon semi 94:95 warning Extra semicolon semi 96:17 warning Extra semicolon semi 97:2 warning Extra semicolon semi 100:61 warning Extra semicolon semi 102:98 warning Extra semicolon semi 104:18 warning Extra semicolon semi 105:2 warning Extra semicolon semi
✖ 40 problems (0 errors, 40 warnings)
0 errors, 40 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section5/periods/period-labels-modal.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/periods/period-labels-modal.jsx 1:17 warning 'useEffect' is defined but never used no-unused-vars 2:31 warning 'Row' is defined but never used no-unused-vars 2:36 warning 'Col' is defined but never used no-unused-vars 3:29 warning 'FormSpy' is defined but never used no-unused-vars 4:10 warning 'FieldArray' is defined but never used no-unused-vars 5:8 warning 'arrayMutators' is defined but never used no-unused-vars 7:8 warning 'moment' is defined but never used no-unused-vars 8:8 warning 'InputLabel' is defined but never used no-unused-vars 9:8 warning 'FinalField' is defined but never used no-unused-vars 12:9 warning 'Item' is assigned a value but never used no-unused-vars 20:9 warning 'addToIndicator' is assigned a value but never used no-unused-vars 42:9 warning Unexpected console statement no-console 78:29 warning The closing bracket must be aligned with the opening tag (expected column 27) react/jsx-closing-bracket-location
✖ 13 problems (0 errors, 13 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section5/periods/periods.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/periods/periods.jsx 15:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 20:8 warning Using exported name 'DefaultsModal' as identifier for default export import/no-named-as-default 303:23 warning The closing bracket must be aligned with the opening tag (expected column 30) react/jsx-closing-bracket-location 306:22 warning The closing bracket must be aligned with the opening tag (expected column 19 on the next line) react/jsx-closing-bracket-location 323:22 warning The closing bracket must be aligned with the opening tag (expected column 19 on the next line) react/jsx-closing-bracket-location 335:23 warning The closing bracket must be aligned with the opening tag (expected column 21) react/jsx-closing-bracket-location 338:22 warning The closing bracket must be aligned with the opening tag (expected column 19 on the next line) react/jsx-closing-bracket-location
✖ 7 problems (0 errors, 7 warnings)
0 errors, 5 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section5/periods/targets.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/periods/targets.jsx 78:32 warning The closing bracket must be aligned with the opening tag (expected column 29 on the next line) react/jsx-closing-bracket-location
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section5/references/references.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/references/references.jsx 3:10 warning 'Field' is defined but never used no-unused-vars 10:8 warning 'SectionContext' is defined but never used no-unused-vars 11:8 warning 'MinRequired' is defined but never used no-unused-vars 14:34 warning 'validations' is defined but never used no-unused-vars 31:23 warning 'index' is defined but never used no-unused-vars
✖ 5 problems (0 errors, 5 warnings) client:135 ./modules/editor/section5/section5.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section5/section5.jsx 4:128 warning 'Select' is defined but never used no-unused-vars 18:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 22:52 warning Extra semicolon semi 72:24 warning The closing bracket must be aligned with the opening tag (expected column 5 on the next line) react/jsx-closing-bracket-location 225:22 warning 'periodLabels' is already declared in the upper scope no-shadow 438:41 warning The closing bracket must be aligned with the opening tag (expected column 39 on the next line) react/jsx-closing-bracket-location 501:29 warning The closing bracket must be aligned with the opening tag (expected column 27 on the next line) react/jsx-closing-bracket-location
✖ 7 problems (0 errors, 7 warnings)
0 errors, 4 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section6/budget-items/budget-items.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/budget-items/budget-items.jsx 16:52 warning Extra semicolon semi 104:16 warning The closing bracket must be aligned with the opening tag (expected column 13 on the next line) react/jsx-closing-bracket-location
✖ 2 problems (0 errors, 2 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/editor/section6/country-budget-items/country-budget-items.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/country-budget-items/country-budget-items.jsx 42:12 warning The closing bracket must be aligned with the opening tag (expected column 11 on the next line) react/jsx-closing-bracket-location
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section6/planned-disbursements/disbursements.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/planned-disbursements/disbursements.jsx 12:71 warning Extra semicolon semi
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section6/section6.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/section6.jsx 18:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 22:48 warning Extra semicolon semi 53:30 warning 'search' is already declared in the upper scope no-shadow
✖ 3 problems (0 errors, 3 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section6/transactions/sectors.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/transactions/sectors.jsx 11:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section6/transactions/transactions.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section6/transactions/transactions.jsx 24:71 warning Extra semicolon semi 26:8 warning 'Condition' is defined but never used no-unused-vars 27:8 warning 'api' is defined but never used no-unused-vars 28:8 warning 'actionTypes' is defined but never used no-unused-vars 47:25 warning 'projectId' is defined but never used no-unused-vars
✖ 5 problems (0 errors, 5 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section7/location-items/administratives.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section7/location-items/administratives.jsx 14:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 91:31 warning The closing bracket must be aligned with the opening tag (expected column 29 on the next line) react/jsx-closing-bracket-location 92:106 warning Dangerous property 'dangerouslySetInnerHTML' found react/no-danger
✖ 3 problems (0 errors, 3 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section7/location-items/location-items.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section7/location-items/location-items.jsx 113:13 warning The closing bracket must be aligned with the opening tag (expected column 17) react/jsx-closing-bracket-location
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section7/location-items/search-item.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section7/location-items/search-item.jsx 23:9 warning Unexpected console statement no-console 44:9 warning Unexpected console statement no-console
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/section7/recipient-regions/recipient-regions.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section7/recipient-regions/recipient-regions.jsx 80:34 warning 'input' is already declared in the upper scope no-shadow
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section7/section7.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section7/section7.jsx 16:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 73:5 warning The closing bracket must be aligned with the opening tag (expected column 7) react/jsx-closing-bracket-location
✖ 2 problems (0 errors, 2 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/editor/section8/policy-markers/policy-markers.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section8/policy-markers/policy-markers.jsx 53:28 warning Multiline support is limited to browsers supporting ES5 only no-multi-str
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section8/section8.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section8/section8.jsx 14:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section8/sectors/validations.js Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section8/sectors/validations.js 2:26 warning 'transformUndefined' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/section9/docs/uploader.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/section9/docs/uploader.jsx 5:10 warning 'diff' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/editor/settings/settings.js Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/settings/settings.js 75:19 warning 'data' is already declared in the upper scope no-shadow 144:33 warning Dangerous property 'dangerouslySetInnerHTML' found react/no-danger
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/editor/validation-bar.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/editor/validation-bar.jsx 19:20 warning 'props' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/enumerators/assignment-view.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/enumerators/assignment-view.jsx 2:11 warning 'window' is defined but never used no-unused-vars 3:17 warning 'useEffect' is defined but never used no-unused-vars 3:38 warning 'useRef' is defined but never used no-unused-vars 6:15 warning 'jsx' is defined but never used no-unused-vars 31:46 warning 'id' is already declared in the upper scope no-shadow 58:10 warning The closing bracket must be aligned with the opening tag (expected column 9 on the next line) react/jsx-closing-bracket-location
✖ 6 problems (0 errors, 6 warnings)
0 errors, 1 warning potentially fixable with the --fix option.
client:135
./modules/enumerators/enumerators.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/enumerators/enumerators.jsx 192:27 warning 'selectedIndicators' is defined but never used no-unused-vars 217:62 warning 'id' is already declared in the upper scope no-shadow
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/iati/new-export-modal.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/iati/new-export-modal.jsx 45:30 warning 'results' is already declared in the upper scope no-shadow 164:30 warning 'ind' is defined but never used no-unused-vars
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/profile/profile.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/profile/profile.jsx 3:10 warning 'Field' is defined but never used no-unused-vars 4:10 warning 'Select' is defined but never used no-unused-vars 4:24 warning 'Spin' is defined but never used no-unused-vars 4:39 warning 'Icon' is defined but never used no-unused-vars 4:45 warning 'Modal' is defined but never used no-unused-vars 4:60 warning 'Upload' is defined but never used no-unused-vars 41:16 warning 'error' is already declared in the upper scope no-shadow
✖ 7 problems (0 errors, 7 warnings) client:135 ./modules/program/program.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/program/program.jsx 96:10 warning The closing bracket must be aligned with the opening tag (expected column 7 on the next line) react/jsx-closing-bracket-location 122:10 warning The closing bracket must be aligned with the opening tag (expected column 7 on the next line) react/jsx-closing-bracket-location 125:9 warning The closing bracket must be aligned with the opening tag (expected column 7 on the next line) react/jsx-closing-bracket-location 128:9 warning The closing bracket must be aligned with the opening tag (expected column 7 on the next line) react/jsx-closing-bracket-location 129:61 warning 'params' is already declared in the upper scope no-shadow 131:9 warning The closing bracket must be aligned with the opening tag (expected column 7 on the next line) react/jsx-closing-bracket-location
✖ 6 problems (0 errors, 6 warnings)
0 errors, 5 warnings potentially fixable with the --fix option.
client:135
./modules/program/result.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/program/result.jsx 42:35 warning 'index' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/projects/cards-view.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/projects/cards-view.jsx 122:5 warning Unexpected console statement no-console
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/projects/projects.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/projects/projects.jsx 3:69 warning 'Checkbox' is defined but never used no-unused-vars 26:106 warning Unused state field: 'programFilter' react/no-unused-state 45:33 warning Extra semicolon semi 174:40 warning The closing bracket must be aligned with the opening tag (expected column 19 on the next line) react/jsx-closing-bracket-location
✖ 4 problems (0 errors, 4 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/reports/reports.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/reports/reports.jsx 193:54 warning 'endDate' is defined but never used no-unused-vars 196:40 warning 'startDate' is defined but never used no-unused-vars
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/results-admin/components/TobeReported.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results-admin/components/TobeReported.jsx 2:20 warning 'Badge' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results-overview/ResultOverview.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results-overview/ResultOverview.jsx 6:21 warning 'result' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results-overview/components/UpdatePeriod.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results-overview/components/UpdatePeriod.jsx 20:3 warning 'baseline' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results/dsg-overview.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/dsg-overview.jsx 59:7 warning Unexpected console statement no-console 68:53 warning 'it' is already declared in the upper scope no-shadow 90:97 warning Extra semicolon semi 119:25 warning 'perc' is already declared in the upper scope no-shadow 135:113 warning Extra semicolon semi
✖ 5 problems (0 errors, 5 warnings)
0 errors, 2 warnings potentially fixable with the --fix option.
client:135
./modules/results/edit-update.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/edit-update.jsx 188:25 warning 'item' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results/enumerator.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/enumerator.jsx 7:64 warning 'Spin' is defined but never used no-unused-vars 7:70 warning 'Typography' is defined but never used no-unused-vars 56:58 warning 'status' is assigned a value but never used no-unused-vars
✖ 3 problems (0 errors, 3 warnings) client:135 ./modules/results/filter-checkbox.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/filter-checkbox.jsx 98:19 warning 'pending' is already declared in the upper scope no-shadow
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results/timeline.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/timeline.jsx 4:10 warning 'setNumberFormat' is defined but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./modules/results/update.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/results/update.jsx 101:15 warning A form label must be associated with a control jsx-a11y/label-has-associated-control 107:15 warning A form label must be associated with a control jsx-a11y/label-has-associated-control
✖ 2 problems (0 errors, 2 warnings) client:135 ./modules/updates/updates.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/updates/updates.jsx 94:38 warning 'initialValues' is already declared in the upper scope no-shadow 163:45 warning 'photo' is already declared in the upper scope no-shadow 165:39 warning 'data' is already declared in the upper scope no-shadow
✖ 3 problems (0 errors, 3 warnings) client:135 ./modules/users/su-org-select.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/modules/users/su-org-select.jsx 11:11 warning 't' is assigned a value but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./utils/final-field.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/final-field.jsx 109:46 warning Dangerous property 'dangerouslySetInnerHTML' found react/no-danger
✖ 1 problem (0 errors, 1 warning) client:135 ./utils/hooks.js Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/hooks.js 27:10 warning 'value' is assigned a value but never used no-unused-vars
✖ 1 problem (0 errors, 1 warning) client:135 ./utils/input-label.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/input-label.jsx 10:75 warning Dangerous property 'dangerouslySetInnerHTML' found react/no-danger
✖ 1 problem (0 errors, 1 warning) client:135 ./utils/item-array.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/item-array.jsx 8:8 warning Using exported name 'AutoSave' as identifier for default export import/no-named-as-default 106:118 warning Extra semicolon semi 107:118 warning Extra semicolon semi 144:19 warning The closing bracket must be aligned with the opening tag (expected column 17 on the next line) react/jsx-closing-bracket-location
✖ 4 problems (0 errors, 4 warnings)
0 errors, 3 warnings potentially fixable with the --fix option.
client:135
./utils/organization-select.jsx
Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/organization-select.jsx 174:7 warning Unexpected console statement no-console
✖ 1 problem (0 errors, 1 warning) client:135 ./utils/portal.jsx Module Warning (from ../node_modules/eslint-loader/index.js):
/var/akvo/rsr/code/akvo/rsr/spa/app/utils/portal.jsx 2:41 warning Extra semicolon semi 3:41 warning Extra semicolon semi 15:2 warning Extra semicolon semi
✖ 3 problems (0 errors, 3 warnings)
0 errors, 3 warnings potentially fixable with the --fix option.
client:135
Warning: Invalid value for prop dispatch on tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react-attribute-behavior
in input (created by Context.Consumer)
in ClearableLabeledInput (created by Context.Consumer)
in Input (created by Control)
in Control (created by Field)
in Field (created by Context.Consumer)
in ReactFinalForm(Field) (created by FinalField)
in FinalField
in FinalField (created by Context.Consumer)
in Connect(Component) (created by ReactFinalForm)
in span (created by Context.Consumer)
in div (created by Context.Consumer)
in div (created by Context.Consumer)
in Col (created by Context.Consumer)
in div (created by Context.Consumer)
in Row (created by Context.Consumer)
in FormItem (created by ReactFinalForm)
in form (created by Context.Consumer)
in Form (created by ReactFinalForm)
in ReactFinalForm (created by Finance)
in div (created by Finance)
in Finance
in Finance (created by Context.Consumer)
in Connect(Component) (created by Context.Consumer)
in _Section (created by Context.Consumer)
in Connect(_Section) (created by Context.Consumer)
in Route (created by Editor)
in div (created by Editor)
in div (created by Editor)
in Editor (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react-dom.development.js:506
Warning: Each child in a list should have a unique "key" prop.
Check the render method of TabBarTabsNode. It was passed a child from Component. See https://fb.me/react-warning-keys for more information.
in h5 (created by Component)
in TabBarTabsNode (created by SaveRef)
in div (created by ScrollableTabBarNode)
in div (created by ScrollableTabBarNode)
in div (created by ScrollableTabBarNode)
in div (created by ScrollableTabBarNode)
in ScrollableTabBarNode (created by SaveRef)
in div (created by TabBarRootNode)
in TabBarRootNode (created by SaveRef)
in SaveRef (created by ScrollableInkTabBar)
in ScrollableInkTabBar (created by TabBar)
in TabBar (created by Tabs)
in div (created by Tabs)
in Tabs (created by Context.Consumer)
in Tabs (created by Component)
in div (created by Dialog)
in div (created by Dialog)
in div (created by LazyRenderBox)
in LazyRenderBox (created by Dialog)
in AnimateChild (created by Animate)
in Animate (created by Dialog)
in div (created by Dialog)
in div (created by Dialog)
in Dialog (created by PortalWrapper)
in Portal (created by PortalWrapper)
in PortalWrapper (created by Component)
in Component (created by Context.Consumer)
in Modal (created by Component)
in Component (created by Context.Consumer)
in Connect(Component) (created by Component)
in Component (created by Context.Consumer)
in Connect(Component) (created by TopBar)
in TopBar (created by Context.Consumer)
in Connect(TopBar) (created by Context.Consumer)
in withRouter(Connect(TopBar)) (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
Warning: Each child in a list should have a unique "key" prop.
Check the render method of Indicator. See https://fb.me/react-warning-keys for more information.
in Period (created by Indicator)
in Indicator (created by Result)
in div (created by PanelContent)
in div (created by PanelContent)
in PanelContent (created by CollapsePanel)
in AnimateChild (created by Animate)
in Animate (created by CollapsePanel)
in div (created by CollapsePanel)
in CollapsePanel (created by Context.Consumer)
in CollapsePanel (created by Result)
in div (created by Collapse)
in Collapse (created by Context.Consumer)
in Collapse (created by Result)
in Aux (created by Result)
in Result (created by Context.Consumer)
in div (created by PanelContent)
in div (created by PanelContent)
in PanelContent (created by CollapsePanel)
in AnimateChild (created by Animate)
in Animate (created by CollapsePanel)
in div (created by CollapsePanel)
in CollapsePanel (created by Context.Consumer)
in CollapsePanel (created by Context.Consumer)
in div (created by Collapse)
in Collapse (created by Context.Consumer)
in Collapse (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
Warning: Each child in a list should have a unique "key" prop.
Check the render method of CollapsePanel. It was passed a child from Period. See https://fb.me/react-warning-keys for more information.
in div (created by Period)
in CollapsePanel (created by Context.Consumer)
in CollapsePanel (created by Period)
in Period (created by Indicator)
in div (created by Collapse)
in Collapse (created by Context.Consumer)
in Collapse (created by Indicator)
in div (created by Indicator)
in Indicator (created by Result)
in div (created by PanelContent)
in div (created by PanelContent)
in PanelContent (created by CollapsePanel)
in AnimateChild (created by Animate)
in Animate (created by CollapsePanel)
in div (created by CollapsePanel)
in CollapsePanel (created by Context.Consumer)
in CollapsePanel (created by Result)
in div (created by Collapse)
in Collapse (created by Context.Consumer)
in Collapse (created by Result)
in Aux (created by Result)
in Result (created by Context.Consumer)
in div (created by PanelContent)
in div (created by PanelContent)
in PanelContent (created by CollapsePanel)
in AnimateChild (created by Animate)
in Animate (created by CollapsePanel)
in div (created by CollapsePanel)
in CollapsePanel (created by Context.Consumer)
in CollapsePanel (created by Context.Consumer)
in div (created by Collapse)
in Collapse (created by Context.Consumer)
in Collapse (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
Warning: Each child in a list should have a unique "key" prop.
Check the render method of ReactFinalFormFieldArray(4.8.1)(2.0.1). See https://fb.me/react-warning-keys for more information.
in ReactFinalForm(Field) (created by ReactFinalFormFieldArray(4.8.1)(2.0.1))
in ReactFinalFormFieldArray(4.8.1)(2.0.1) (created by Context.Consumer)
in ReactFinalForm(ReactFinalFormFieldArray(4.8.1)(2.0.1)) (created by ItemArray)
in div (created by ItemArray)
in ItemArray (created by withI18nextTranslation(ItemArray))
in withI18nextTranslation(ItemArray) (created by Context.Consumer)
in Connect(withI18nextTranslation(ItemArray)) (created by BudgetItems)
in div (created by BudgetItems)
in BudgetItems
in BudgetItems (created by Context.Consumer)
in Connect(Component) (created by ReactFinalForm)
in form (created by Context.Consumer)
in Form (created by ReactFinalForm)
in ReactFinalForm (created by Finance)
in div (created by Finance)
in Finance
in Finance (created by Context.Consumer)
in Connect(Component) (created by Context.Consumer)
in _Section (created by Context.Consumer)
in Connect(_Section) (created by Context.Consumer)
in Route (created by Editor)
in div (created by Editor)
in div (created by Editor)
in Editor (created by Context.Consumer)
in Route (created by Program)
in div (created by Program)
in Program (created by Context.Consumer)
in Connect(Program) (created by Context.Consumer)
in Route (created by Root)
in div (created by Root)
in div (created by Root)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (created by Root)
in Router (created by BrowserRouter)
in BrowserRouter (created by Root)
in Root (created by Context.Consumer)
in Connect(Root)
in Provider
in AppContainer react.development.js:188
React 5
createElement react-hot-loader.development.js:1685
jsx core.browser.esm.js:17
render item-array.jsx:112
renderComponent react-final-form-arrays.es.js:54
render react-final-form-arrays.es.js:274
hotComponentRender react-hot-loader.development.js:728
proxiedRender react-hot-loader.development.js:748
React 13
FieldArray react-final-form-arrays.es.js:145
I think the code assumes that some Budget Item labels are already present in the DB, or I guess the front-end hardcodes some values for the Budget item labels, and the DB has different values.
Hi @punchagan
You are right, I am trying to add Budget items based on the categories listed on the front end and it seems like the front end hardcoded values for the budget levels, the only one that seems to work is for Employment. When I add a budget item for Employment (so as to be able to publish my project) on the Finances tab it is coming up as Water Resource Management.

http://157.230.228.89/en/project/2/#finance

Is there interest in using the Budget functionality from most of your clients? What is the difference between the Budget entered via the Project Editor and one that is entered in the backend when one login via /admin?
I'm not sure how the Budget Codes were added, and there's probably a lot of legacy behind it. But, the right fix here would be to fix the front-end to get the Budget Codes from the backend, I think.
I no longer work on RSR and @zuhdil or @MichaelAkvo should be able to guide you on this, @ronna