Skip to content

Commit

Permalink
Merge pull request #190 from CSCfi/CSCFC4EMSCR-335_Reload-mappings-wh…
Browse files Browse the repository at this point in the history
…en-switching-crosswalk

CSCFC4EMSCR-335 Set mappings from backend when they get a new value
  • Loading branch information
konolak authored Jun 28, 2024
2 parents 780348c + c8ab3d8 commit 6a1e64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscr-ui/src/modules/crosswalk-editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default function CrosswalkEditor({
const nodeMappings = mappingsFromBackend as NodeMapping[];
setNodeMappings(nodeMappings);
}
}, [getMappingsDataIsSuccess]);
}, [getMappingsDataIsSuccess, mappingsFromBackend]);

// Add mapping to accordion
if (putMappingResponse.isSuccess) {
Expand Down

0 comments on commit 6a1e64a

Please sign in to comment.