The airgap drain should be located in a different location. i assume you have a saddle tap type of connection. These are technically not to code, but they are common and pose no real world problems. The air gap drain tap should be located on the other sink drain, and it must be installed on the sink side of the p-trap. Look under the sink to determine the best location for the saddle tap.

You could also update your drain to code with one of the items pictured here.