Skip to content
Snippets Groups Projects
Unverified Commit 29282499 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Fix isEditable check (#37654)

parent 2c7eb307
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,8 @@ class StructuredQuery extends AtomicQuery {
* @returns true if we have metadata for the root source table loaded
*/
hasMetadata(): boolean {
return this.metadata() != null && this.rootTable() != null;
const metadata = this.metadata();
return metadata != null && metadata.table(this._sourceTableId()) != null;
}
// Whether the user can modify and run this query
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment