Skip to content
Snippets Groups Projects
Unverified Commit 2814105a authored by Mael Gaonach's avatar Mael Gaonach
Browse files

wip

parent 461298ee
No related branches found
No related tags found
1 merge request!332Draft: Resolve "MX: Show gif on automesh snapshot hover"
Pipeline #147426 passed
......@@ -14,9 +14,9 @@ const SNAPSHOT_NAMES = ['snapshot_animated', 'snapshot'];
export function MXActionSnapshot({ action }: { action: Dataset }) {
const snapshotContent = useMemo(() => {
const snapshot = SNAPSHOT_NAMES.flatMap((name) =>
getGalleryItemByName(action, name)
)[0];
const snapshot = SNAPSHOT_NAMES.flatMap((name) => {
return getGalleryItemByName(action, name);
})[0];
if (!snapshot) return undefined;
else
return (
......
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