src/properties/class-papi-property-flexible.php
public function render_ajax_request() {
		$items   = null;
		$layouts = $this->get_settings_layouts();

		if ( defined( 'DOING_PAPI_AJAX' ) && DOING_PAPI_AJAX ) {
			$counter         = papi_get_qs( 'counter' );
			$this->counter   = intval( $counter );
			$flexible_layout = papi_get_qs( 'flexible_layout' );

			foreach ( $layouts as $layout ) {
				if ( $layout['slug'] === $flexible_layout ) {
					$items = $layout;
					break;
				}
			}
		}

		if ( ! empty( $items ) ) {
			$this->render_properties( $items, false );
		}
	}
public function render_ajax_request() {
		$items   = null;
		$layouts = $this->get_settings_layouts();

		if ( defined( 'DOING_PAPI_AJAX' ) && DOING_PAPI_AJAX ) {
			$counter         = papi_get_qs( 'counter' );
			$this->counter   = intval( $counter );
			$flexible_layout = papi_get_qs( 'flexible_layout' );

			foreach ( $layouts as $layout ) {
				if ( $layout['slug'] === $flexible_layout ) {
					$items = $layout;
					break;
				}
			}
		}

		if ( ! empty( $items ) ) {
			$this->render_properties( $items, false );
		}
	}
Render AJAX request.