Skip to content

Commit 6a1e64a

Browse files
authored
Merge pull request #190 from CSCfi/CSCFC4EMSCR-335_Reload-mappings-when-switching-crosswalk
CSCFC4EMSCR-335 Set mappings from backend when they get a new value
2 parents 780348c + c8ab3d8 commit 6a1e64a

File tree

1 file changed

+1
-1
lines changed
  • mscr-ui/src/modules/crosswalk-editor

1 file changed

+1
-1
lines changed

mscr-ui/src/modules/crosswalk-editor/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default function CrosswalkEditor({
220220
const nodeMappings = mappingsFromBackend as NodeMapping[];
221221
setNodeMappings(nodeMappings);
222222
}
223-
}, [getMappingsDataIsSuccess]);
223+
}, [getMappingsDataIsSuccess, mappingsFromBackend]);
224224

225225
// Add mapping to accordion
226226
if (putMappingResponse.isSuccess) {

0 commit comments

Comments
 (0)