Fix export after saving a query edit with query editor