Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/Editor/DataBinding/BlockBindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static function get_value( array $source_args, WP_Block|array $block, str

// Prepend label to value if provided. Class name should match the one
// generated by the block editor script.
if ( ! empty( $field_label ) && 'content' === $attribute_name ) {
if ( ! empty( $field_label ) && 'content' === $attribute_name && ! empty( $value ) ) {
return sprintf( '<span class="rdb-block-label">%s</span> %s', $source_args['label'], $value );
}

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/remote-data-container/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
exit;
}

echo wp_kses_post( BlockBindings::render_remote_data_block( $attributes, $content, $block ) );
echo BlockBindings::render_remote_data_block( $attributes, $content, $block );
2 changes: 1 addition & 1 deletion src/blocks/remote-data-template/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
exit;
}

echo wp_kses_post( BlockBindings::render_remote_data_template_block( $attributes, $content, $block ) );
echo BlockBindings::render_remote_data_template_block( $attributes, $content, $block );
2 changes: 1 addition & 1 deletion src/data-sources/api-clients/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class GoogleApi {
}

public async getSheetFields( spreadsheetId: string, sheetTitle: string ): Promise< string[] > {
const values = await this.getSheetValues( spreadsheetId, sheetTitle, 'A1:Z1' );
const values = await this.getSheetValues( spreadsheetId, sheetTitle, '1:1' );
if ( ! values?.values?.length ) {
return [];
}
Expand Down