diff --git a/gulpfile.js b/gulpfile.js index cbac864a61..94faeda4b4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -310,6 +310,7 @@ gulp.task('core:bumpVersion', done => { gulp .src(['./packages/core/src/lib/config/version.ts']) .pipe(replace(/lib: '[A-Za-z0-9\.\-]+'/g, `lib: '${version}'`)) + .pipe(replace(/releaseDate: [0-9]+/g, `releaseDate: ${Date.now()}`)) .pipe(gulp.dest('./packages/core/src/lib/config/.')); done(); diff --git a/packages/core/src/lib/config/version.ts b/packages/core/src/lib/config/version.ts index 767f204c06..9085aa7f9c 100644 --- a/packages/core/src/lib/config/version.ts +++ b/packages/core/src/lib/config/version.ts @@ -1,7 +1,9 @@ export interface Version { lib: string; + releaseDate: number; } export const version: Version = { - lib: '1.4.3' + lib: '1.4.3', + releaseDate: 1602002282549 }; diff --git a/packages/geo/src/lib/search/shared/sources/storedqueries.ts b/packages/geo/src/lib/search/shared/sources/storedqueries.ts index 8f39b29d73..919a8d26e8 100644 --- a/packages/geo/src/lib/search/shared/sources/storedqueries.ts +++ b/packages/geo/src/lib/search/shared/sources/storedqueries.ts @@ -346,6 +346,11 @@ export class StoredQueriesReverseSearchSource extends SearchSource ) { super(options); this.storedQueriesOptions = options as StoredQueriesReverseSearchSourceOptions; + + if (!this.storedQueriesOptions || (this.storedQueriesOptions && !this.storedQueriesOptions.available) ) { + return; + } + if (!this.storedQueriesOptions.storedquery_id) { const err = 'Stored Queries :You have to set "storedquery_id" into StoredQueries options. ex: storedquery_id: "nameofstoredquerie"';