World number two Novak Djokovic withstood Juan Martin del Potro 7-5, 4-6, 6-1 on Tuesday to reach the fourth round of the ATP Indian Wells Masters.