yr problem is that you have a dimmer improperly installed to a receptacle. remove the dimmer. you likely also have a wiring error in your switch loop to begin with.
remove the dimmer, properly wire a snap switch or hardwire the receptacle. if you want dimming do so properly, either hardwire a luminaire to a dimmer or use a properly matched in-line lamp dimmer between the lamp and the receptacle.