diff --git a/src/properties/class-papi-property-repeater.php b/src/properties/class-papi-property-repeater.php
index <HASH>..<HASH> 100644
--- a/src/properties/class-papi-property-repeater.php
+++ b/src/properties/class-papi-property-repeater.php
@@ -521,7 +521,7 @@ class Papi_Property_Repeater extends Papi_Property {
 	public function render_ajax_request() {
 		$items = $this->get_settings_properties();
 
-		if ( defined( 'DOING_PAPI_AJAX' ) && DOING_PAPI_AJAX ) {
+		if ( papi_doing_ajax() ) {
 			$counter = papi_get_qs( 'counter' );
 			$this->counter = intval( $counter );
 		}
Use papi_doing_ajax instead of check for defined