Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rewriteProxyIds(state, idMapping) {
state.measurements = remapIdKeys(state.measurements, idMapping);
state.imageToLabelmaps = remapIdKeys(state.imageToLabelmaps, idMapping);
state.labelmapStates = remapIdKeys(state.labelmapStates, idMapping);
Object.keys(state.imageToLabelmaps).forEach((id) => {
state.imageToLabelmaps[id] = remapIdList(
state.imageToLabelmaps[id],
idMapping
);
});
},
},
rewriteProxyIds(state, idMapping) {
state.measurements = remapIdKeys(state.measurements, idMapping);
state.imageToLabelmaps = remapIdKeys(state.imageToLabelmaps, idMapping);
state.labelmapStates = remapIdKeys(state.labelmapStates, idMapping);
Object.keys(state.imageToLabelmaps).forEach((id) => {
state.imageToLabelmaps[id] = remapIdList(
state.imageToLabelmaps[id],
idMapping
);
});
},
},
rewriteProxyIds(state, idMapping) {
state.measurements = remapIdKeys(state.measurements, idMapping);
state.imageToLabelmaps = remapIdKeys(state.imageToLabelmaps, idMapping);
state.labelmapStates = remapIdKeys(state.labelmapStates, idMapping);
Object.keys(state.imageToLabelmaps).forEach((id) => {
state.imageToLabelmaps[id] = remapIdList(
state.imageToLabelmaps[id],
idMapping
);
});
},
},