Skip to content

Commit

Permalink
fix: export don't refresh (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord-davids authored Mar 30, 2023
1 parent bf512d5 commit b133b15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/encord_active/app/actions_page/export_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from streamlit.delta_generator import DeltaGenerator

from encord_active.app.app_config import app_config
from encord_active.app.common.state import get_state, refresh
from encord_active.app.common.state import get_state
from encord_active.app.common.state_hooks import UseState
from encord_active.app.common.utils import human_format, set_page_config, setup_page
from encord_active.lib.coco.encoder import generate_coco_file
Expand Down Expand Up @@ -435,12 +435,11 @@ def render_export_button(
new_project_link = f"https://app.encord.com/projects/view/{project_creation_result.project_hash}/summary"
new_dataset_link = f"https://app.encord.com/datasets/view/{project_creation_result.dataset_hash}"
update_items = [
UpdateItem(type=UpdateItemType.LABEL, text="🎉 New project is created!"),
UpdateItem(type=UpdateItemType.LABEL, text="🎉 Project exported to Encord Annotate!"),
UpdateItem(type=UpdateItemType.MARKDOWN, text=f"[Go to new project]({new_project_link})"),
UpdateItem(type=UpdateItemType.MARKDOWN, text=f"[Go to new dataset]({new_dataset_link})"),
]
set_updates(update_items)
refresh(clear_global=True)


def render_unimplemented_buttons(
Expand Down

0 comments on commit b133b15

Please sign in to comment.