src/main/java/seedu/address/viewmodel/ViewModel.java
private void resetStudentDetailsMap() throws CommandException {
        if (studentDetailsMap.containsKey("select_ids")) {
            ArrayList<ID> idsList = (ArrayList<ID>) studentDetailsMap.get("select_ids");
            updateStudentDetailsMap(idsList.get(0));
            if (idsList.size() == 2) {
                updateProgressStudentCourse(idsList.get(0), idsList.get(1));
            }
        }
    }
// #################### Handle sub-view map data update on model data update ##########################
Handle sub-view map data update on model data update
Handle sub - view map data update on model data update
private void resetStudentDetailsMap() throws CommandException {
        if (studentDetailsMap.containsKey("select_ids")) {
            ArrayList<ID> idsList = (ArrayList<ID>) studentDetailsMap.get("select_ids");
            updateStudentDetailsMap(idsList.get(0));
            if (idsList.size() == 2) {
                updateProgressStudentCourse(idsList.get(0), idsList.get(1));
            }
        }
    }
private void resetStudentDetailsMap ( ) throws CommandException { if ( studentDetailsMap . containsKey ( "select_ids" ) ) { ArrayList < ID > idsList = ( ArrayList < ID > ) studentDetailsMap . get ( "select_ids" ) ; updateStudentDetailsMap ( idsList . get ( 0 ) ) ; if ( idsList . size ( ) == 2 ) { updateProgressStudentCourse ( idsList . get ( 0 ) , idsList . get ( 1 ) ) ; } } }
Handle sub-view map data update on model data update
Handle sub - view map data update on model data update